1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Ignore warnings about ambiguous first argument of regexp with assert match.

This commit is contained in:
Hiroshi SHIBATA 2019-06-01 14:44:24 +03:00
parent f630359d9b
commit 9eecd7a2fd
No known key found for this signature in database
GPG key ID: F9CF13417264FAC2
4 changed files with 16 additions and 16 deletions

View file

@ -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