diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/json_common_interface_test.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/json_common_interface_test.rb b/tests/json_common_interface_test.rb index b2051d4..29b4a5b 100644 --- a/tests/json_common_interface_test.rb +++ b/tests/json_common_interface_test.rb @@ -47,7 +47,7 @@ class JSONCommonInterfaceTest < Test::Unit::TestCase end def test_deep_const_get - assert_raises(ArgumentError) { JSON.deep_const_get('Nix::Da') } + assert_raise(ArgumentError) { JSON.deep_const_get('Nix::Da') } assert_equal File::SEPARATOR, JSON.deep_const_get('File::SEPARATOR') end @@ -93,8 +93,8 @@ class JSONCommonInterfaceTest < Test::Unit::TestCase def test_load_null assert_equal nil, JSON.load(nil, nil, :allow_blank => true) - assert_raises(TypeError) { JSON.load(nil, nil, :allow_blank => false) } - assert_raises(JSON::ParserError) { JSON.load('', nil, :allow_blank => false) } + assert_raise(TypeError) { JSON.load(nil, nil, :allow_blank => false) } + assert_raise(JSON::ParserError) { JSON.load('', nil, :allow_blank => false) } end def test_dump |