From 1069e5d665599ce60086f284b575d3a850ed2b01 Mon Sep 17 00:00:00 2001 From: nobu Date: Sat, 5 Feb 2011 02:29:18 +0000 Subject: * ext/json/parser/parser.h (GET_PARSER): raise TypeError. * ext/json/parser/parser.rl (cParser_initialize): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30792 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/json/test_json.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test') 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 -- cgit v1.2.3