diff options
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/test_json.rb | 2 | ||||
-rwxr-xr-x | tests/test_json_addition.rb | 8 | ||||
-rw-r--r-- | tests/test_json_encoding.rb | 2 | ||||
-rwxr-xr-x | tests/test_json_fixtures.rb | 2 | ||||
-rwxr-xr-x | tests/test_json_generate.rb | 2 | ||||
-rw-r--r-- | tests/test_json_string_matching.rb | 2 | ||||
-rwxr-xr-x | tests/test_json_unicode.rb | 2 |
7 files changed, 10 insertions, 10 deletions
diff --git a/tests/test_json.rb b/tests/test_json.rb index f69817f..7beaaac 100755 --- a/tests/test_json.rb +++ b/tests/test_json.rb @@ -21,7 +21,7 @@ unless Array.method_defined?(:permutation) end end -class TC_JSON < Test::Unit::TestCase +class TestJSON < Test::Unit::TestCase include JSON def setup diff --git a/tests/test_json_addition.rb b/tests/test_json_addition.rb index e262e25..cf80866 100755 --- a/tests/test_json_addition.rb +++ b/tests/test_json_addition.rb @@ -10,7 +10,7 @@ require 'json/add/bigdecimal' require 'json/add/ostruct' require 'date' -class TC_JSONAddition < Test::Unit::TestCase +class TestJSONAddition < Test::Unit::TestCase include JSON class A @@ -64,7 +64,7 @@ class TC_JSONAddition < Test::Unit::TestCase def to_json(*args) { - 'json_class' => 'TC_JSONAddition::Nix', + 'json_class' => 'TestJSONAddition::Nix', }.to_json(*args) end end @@ -88,7 +88,7 @@ class TC_JSONAddition < Test::Unit::TestCase a_hash = JSON.parse(json, :create_additions => false) assert_kind_of Hash, a_hash assert_equal( - {"args"=>[666], "json_class"=>"TC_JSONAddition::A"}.sort_by { |k,| k }, + {"args"=>[666], "json_class"=>"TestJSONAddition::A"}.sort_by { |k,| k }, a_hash.sort_by { |k,| k } ) end @@ -97,7 +97,7 @@ class TC_JSONAddition < Test::Unit::TestCase b = B.new assert !B.json_creatable? json = generate(b) - assert_equal({ "json_class"=>"TC_JSONAddition::B" }, JSON.parse(json)) + assert_equal({ "json_class"=>"TestJSONAddition::B" }, JSON.parse(json)) end def test_extended_json_fail2 diff --git a/tests/test_json_encoding.rb b/tests/test_json_encoding.rb index 7af5e63..caa0c6c 100644 --- a/tests/test_json_encoding.rb +++ b/tests/test_json_encoding.rb @@ -4,7 +4,7 @@ require 'test/unit' require File.join(File.dirname(__FILE__), 'setup_variant') -class TC_JSONEncoding < Test::Unit::TestCase +class TestJSONEncoding < Test::Unit::TestCase include JSON def setup diff --git a/tests/test_json_fixtures.rb b/tests/test_json_fixtures.rb index e9df8f5..37e5145 100755 --- a/tests/test_json_fixtures.rb +++ b/tests/test_json_fixtures.rb @@ -4,7 +4,7 @@ require 'test/unit' require File.join(File.dirname(__FILE__), 'setup_variant') -class TC_JSONFixtures < Test::Unit::TestCase +class TestJSONFixtures < Test::Unit::TestCase def setup fixtures = File.join(File.dirname(__FILE__), 'fixtures/*.json') passed, failed = Dir[fixtures].partition { |f| f['pass'] } diff --git a/tests/test_json_generate.rb b/tests/test_json_generate.rb index 3a1ddc6..1c7ae34 100755 --- a/tests/test_json_generate.rb +++ b/tests/test_json_generate.rb @@ -4,7 +4,7 @@ require 'test/unit' require File.join(File.dirname(__FILE__), 'setup_variant') -class TC_JSONGenerate < Test::Unit::TestCase +class TestJSONGenerate < Test::Unit::TestCase include JSON def setup diff --git a/tests/test_json_string_matching.rb b/tests/test_json_string_matching.rb index df26a68..b8a7169 100644 --- a/tests/test_json_string_matching.rb +++ b/tests/test_json_string_matching.rb @@ -6,7 +6,7 @@ require File.join(File.dirname(__FILE__), 'setup_variant') require 'stringio' require 'time' -class TestJsonStringMatching < Test::Unit::TestCase +class TestJSONStringMatching < Test::Unit::TestCase include JSON class TestTime < ::Time diff --git a/tests/test_json_unicode.rb b/tests/test_json_unicode.rb index ace56ca..c328811 100755 --- a/tests/test_json_unicode.rb +++ b/tests/test_json_unicode.rb @@ -4,7 +4,7 @@ require 'test/unit' require File.join(File.dirname(__FILE__), 'setup_variant') -class TC_JSONUnicode < Test::Unit::TestCase +class TestJSONUnicode < Test::Unit::TestCase include JSON def test_unicode |