Changeset 2212 for lang/ruby/ssb/trunk/test/ktai_spec_test.rb
- Timestamp:
- 12/01/07 09:35:57 (5 years ago)
- Files:
-
- 1 moved
-
lang/ruby/ssb/trunk/test/ktai_spec_test.rb (moved) (moved from lang/ruby/ssb/trunk/test/test_ktai_spec.rb) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lang/ruby/ssb/trunk/test/ktai_spec_test.rb
r1870 r2212 1 # test_ktai_spec.rb - Unit test for KtaiSpec 2 # 3 # Author:: MIZOGUCHI Coji <mizoguchi.coji at gmail.com> 4 # License:: Distributes under the same terms as Ruby 5 # 6 # $Id$ 7 # 8 require 'test/unit' 9 require 'config/common.rb' 1 require File.expand_path(File.dirname(__FILE__) + '/test_helper') 10 2 require 'ssb/ktai_spec.rb' 11 3 12 class KtaiSpec_Test < Test::Unit::TestCase 4 unit_tests do 13 5 TEST_UA = 'DoCoMo/2.0 N902i(c100;TB;hid;icc)' 14 6 TEST_PROPS = { … … 34 26 35 27 # デフォルトプロパティはキーとして存在する必要あり 36 def test_default_props28 test 'default_props' do 37 29 @spec.each do |spec| 38 30 MUST_KEYS.each do |key| … … 44 36 45 37 # 拡張プロパティがちゃんと格納されるか 46 def test_extra_prop38 test 'extra_prop' do 47 39 assert(@spec[1].has_key?(:extra)) 48 40 assert_equal(@spec[1][:extra], '拡張データ') … … 50 42 51 43 # ユーザエージェント文字列が正しいか 52 def test_useragent44 test 'useragent' do 53 45 assert(@spec[0][:useragent]) 54 46 assert_equal(@spec[0][:useragent], TEST_UA)
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)