summaryrefslogtreecommitdiff
path: root/test/json/test_json_encoding.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/json/test_json_encoding.rb')
-rw-r--r--test/json/test_json_encoding.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/json/test_json_encoding.rb b/test/json/test_json_encoding.rb
index fa7d878920..13903cd266 100644
--- a/test/json/test_json_encoding.rb
+++ b/test/json/test_json_encoding.rb
@@ -59,7 +59,7 @@ class TestJSONEncoding < Test::Unit::TestCase
assert_equal @generated, JSON.generate(@utf_16_data, :ascii_only => true)
else
# XXX checking of correct utf8 data is not as strict (yet?) without :ascii_only
- assert_raises(JSON::GeneratorError) { JSON.generate(@utf_16_data, :ascii_only => true) }
+ assert_raise(JSON::GeneratorError) { JSON.generate(@utf_16_data, :ascii_only => true) }
end
end
end