summaryrefslogtreecommitdiff
path: root/test/json
diff options
context:
space:
mode:
authorhsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-04-12 00:21:20 +0000
committerhsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-04-12 00:21:20 +0000
commitd9df358ea8a627b9dab2ad2977f4d2448aad1e30 (patch)
tree07963355d6e1f436f51ed5adabae91f3efd4153a /test/json
parent83735ba29a0bfdaffa8e9c2a1dc025c3b0b63153 (diff)
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')
-rw-r--r--test/json/json_encoding_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/json/json_encoding_test.rb b/test/json/json_encoding_test.rb
index 4e086ef..cc7b715 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