summaryrefslogtreecommitdiff
path: root/test/json/test_json.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/json/test_json.rb')
-rwxr-xr-xtest/json/test_json.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/json/test_json.rb b/test/json/test_json.rb
index cb70085242..aea50485fc 100755
--- a/test/json/test_json.rb
+++ b/test/json/test_json.rb
@@ -394,8 +394,8 @@ EOT
def test_allocate
json = JSON::Parser.new("{}")
- assert_raises(ArgumentError, '[ruby-core:35079]') {json.__send__(:initialize, "{}")}
+ assert_raises(TypeError, '[ruby-core:35079]') {json.__send__(:initialize, "{}")}
json = JSON::Parser.allocate
- assert_raises(ArgumentError, '[ruby-core:35079]') {json.source}
+ assert_raises(TypeError, '[ruby-core:35079]') {json.source}
end
end