ruby-changes:43596
From: hsbt <ko1@a...>
Date: Wed, 13 Jul 2016 22:27:15 +0900 (JST)
Subject: [ruby-changes:43596] hsbt:r55669 (trunk): * test/json/json_common_interface_test.rb: use assert_raise instead of
hsbt 2016-07-13 22:27:08 +0900 (Wed, 13 Jul 2016) New Revision: 55669 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=55669 Log: * test/json/json_common_interface_test.rb: use assert_raise instead of assert_raises. Modified files: trunk/ChangeLog trunk/test/json/json_common_interface_test.rb Index: test/json/json_common_interface_test.rb =================================================================== --- test/json/json_common_interface_test.rb (revision 55668) +++ test/json/json_common_interface_test.rb (revision 55669) @@ -47,7 +47,7 @@ class JSONCommonInterfaceTest < Test::Un https://github.com/ruby/ruby/blob/trunk/test/json/json_common_interface_test.rb#L47 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::Un https://github.com/ruby/ruby/blob/trunk/test/json/json_common_interface_test.rb#L93 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 Index: ChangeLog =================================================================== --- ChangeLog (revision 55668) +++ ChangeLog (revision 55669) @@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Wed Jul 13 22:23:03 2016 SHIBATA Hiroshi <hsbt@r...> + + * test/json/json_common_interface_test.rb: use assert_raise instead of + assert_raises. + Wed Jul 13 22:14:23 2016 SHIBATA Hiroshi <hsbt@r...> * test/lib/test/unit.rb: added test files with `_test` suffix for json -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/