1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* test/json/json_common_interface_test.rb: use assert_raise instead of

assert_raises.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55669 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
hsbt 2016-07-13 13:27:08 +00:00
parent 158f1e5b89
commit bdda54c064
2 changed files with 8 additions and 3 deletions

View file

@ -1,3 +1,8 @@
Wed Jul 13 22:23:03 2016 SHIBATA Hiroshi <hsbt@ruby-lang.org>
* test/json/json_common_interface_test.rb: use assert_raise instead of
assert_raises.
Wed Jul 13 22:14:23 2016 SHIBATA Hiroshi <hsbt@ruby-lang.org>
* test/lib/test/unit.rb: added test files with `_test` suffix for json

View file

@ -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