diff options
Diffstat (limited to 'test/json/test_json_addition.rb')
-rw-r--r-- | test/json/test_json_addition.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/json/test_json_addition.rb b/test/json/test_json_addition.rb index a30f06addd..6034a183bd 100644 --- a/test/json/test_json_addition.rb +++ b/test/json/test_json_addition.rb @@ -112,7 +112,7 @@ class TestJSONAddition < Test::Unit::TestCase c = C.new assert !C.json_creatable? json = generate(c) - assert_raises(ArgumentError, NameError) { JSON.parse(json, :create_additions => true) } + assert_raise(ArgumentError, NameError) { JSON.parse(json, :create_additions => true) } end def test_raw_strings @@ -151,7 +151,7 @@ class TestJSONAddition < Test::Unit::TestCase assert_equal s, JSON(JSON(s), :create_additions => true) struct = Struct.new :foo, :bar s = struct.new 4711, 'foot' - assert_raises(JSONError) { JSON(s) } + assert_raise(JSONError) { JSON(s) } begin raise TypeError, "test me" rescue TypeError => e |