diff options
Diffstat (limited to 'tests/test_json.rb')
-rwxr-xr-x | tests/test_json.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/test_json.rb b/tests/test_json.rb index 4b4bc55..22cd5ee 100755 --- a/tests/test_json.rb +++ b/tests/test_json.rb @@ -316,14 +316,14 @@ class TestJSON < Test::Unit::TestCase assert res.item_set? end - def test_parse_light_object - res = parse('{"foo":"bar", "baz":{}}', :object_class => JSON::LightObject) - assert_equal(JSON::LightObject, res.class) + def test_parse_generic_object + res = parse('{"foo":"bar", "baz":{}}', :object_class => JSON::GenericObject) + assert_equal(JSON::GenericObject, res.class) assert_equal "bar", res.foo assert_equal "bar", res["foo"] assert_equal "bar", res[:foo] assert_equal "bar", res.to_hash[:foo] - assert_equal(JSON::LightObject, res.baz.class) + assert_equal(JSON::GenericObject, res.baz.class) end def test_generate_core_subclasses_with_new_to_json |