summaryrefslogtreecommitdiff
path: root/test/json
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2019-06-01 14:44:24 +0300
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2019-06-01 14:44:24 +0300
commit9eecd7a2fd0b67aa13450887a1fee9a6638b9e4e (patch)
treed936591f6d6bc2af27fdb25c37f11ef9bad67fe4 /test/json
parentf630359d9b60e298e472a62f0b6ff17f17ef5c69 (diff)
Ignore warnings about ambiguous first argument of regexp with assert match.
Diffstat (limited to 'test/json')
-rw-r--r--test/json/json_common_interface_test.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/json/json_common_interface_test.rb b/test/json/json_common_interface_test.rb
index 29b4a5b..6f32247 100644
--- a/test/json/json_common_interface_test.rb
+++ b/test/json/json_common_interface_test.rb
@@ -27,15 +27,15 @@ class JSONCommonInterfaceTest < Test::Unit::TestCase
end
def test_parser
- assert_match /::Parser\z/, JSON.parser.name
+ assert_match(/::Parser\z/, JSON.parser.name)
end
def test_generator
- assert_match /::Generator\z/, JSON.generator.name
+ assert_match(/::Generator\z/, JSON.generator.name)
end
def test_state
- assert_match /::Generator::State\z/, JSON.state.name
+ assert_match(/::Generator::State\z/, JSON.state.name)
end
def test_create_id