diff options
author | hsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-04-12 00:21:20 +0000 |
---|---|---|
committer | hsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-04-12 00:21:20 +0000 |
commit | d9df358ea8a627b9dab2ad2977f4d2448aad1e30 (patch) | |
tree | 07963355d6e1f436f51ed5adabae91f3efd4153a /test/json/json_encoding_test.rb | |
parent | 83735ba29a0bfdaffa8e9c2a1dc025c3b0b63153 (diff) | |
download | ruby-d9df358ea8a627b9dab2ad2977f4d2448aad1e30.tar.gz |
Use `assert_raise` instead of `assert_raises`.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58324 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/json/json_encoding_test.rb')
-rw-r--r-- | test/json/json_encoding_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/json/json_encoding_test.rb b/test/json/json_encoding_test.rb index 4e086ef84a..cc7b71553a 100644 --- a/test/json/json_encoding_test.rb +++ b/test/json/json_encoding_test.rb @@ -79,8 +79,8 @@ class JSONEncodingTest < Test::Unit::TestCase json = '["\ud840\udc01"]' assert_equal json, generate(utf8, :ascii_only => true) assert_equal utf8, parse(json) - assert_raises(JSON::ParserError) { parse('"\u"') } - assert_raises(JSON::ParserError) { parse('"\ud800"') } + assert_raise(JSON::ParserError) { parse('"\u"') } + assert_raise(JSON::ParserError) { parse('"\ud800"') } end def test_chars |