diff options
author | Florian Frank <flori@ping.de> | 2017-04-18 11:11:47 +0200 |
---|---|---|
committer | Florian Frank <flori@ping.de> | 2017-04-18 11:11:47 +0200 |
commit | 7cd07fabbe8ca1242304eb21ac8245eef0fb9343 (patch) | |
tree | 537f9cd436894d712f5d80eab54af7f077089010 | |
parent | 6d72031b7db09468064d5c27da7b196410fb5d94 (diff) | |
download | json-7cd07fabbe8ca1242304eb21ac8245eef0fb9343.tar.gz |
Use assert_raise
-rw-r--r-- | tests/json_encoding_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/json_encoding_test.rb b/tests/json_encoding_test.rb index 4e086ef..cc7b715 100644 --- a/tests/json_encoding_test.rb +++ b/tests/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 |