diff options
Diffstat (limited to 'tests/test_json.rb')
-rwxr-xr-x | tests/test_json.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/test_json.rb b/tests/test_json.rb index d320498..5b43ec9 100755 --- a/tests/test_json.rb +++ b/tests/test_json.rb @@ -408,9 +408,11 @@ EOT end if defined?(JSON::Ext::Parser) - def test_uninitialized + def test_allocate + parser = JSON::Ext::Parser.new("{}") + assert_raise(TypeError, '[ruby-core:35079]') {parser.__send__(:initialize, "{}")} parser = JSON::Ext::Parser.allocate - assert_raise(TypeError) {parser.source} + assert_raise(TypeError, '[ruby-core:35079]') {parser.source} end end end |