diff --git a/test/json/json_parser_test.rb b/test/json/json_parser_test.rb index c7f1a5f3b4..dce693e548 100644 --- a/test/json/json_parser_test.rb +++ b/test/json/json_parser_test.rb @@ -224,8 +224,8 @@ class JSONParserTest < Test::Unit::TestCase assert_predicate parse('"foo"', :freeze => true), :frozen? if string_deduplication_available? - assert_same -'foo', parse('"foo"', :freeze => true) - assert_same -'foo', parse('{"foo": 1}', :freeze => true).keys.first + assert_same(-'foo', parse('"foo"', :freeze => true)) + assert_same(-'foo', parse('{"foo": 1}', :freeze => true).keys.first) end end