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

Prevent "warning: ambiguity between regexp and two divisions"

This commit is contained in:
Yusuke Endoh 2021-06-30 13:41:18 +09:00
parent 6c6b128c67
commit b270b5df2c

View file

@ -151,6 +151,6 @@ class TestNameError < Test::Unit::TestCase
error = assert_raise(NameError) do
receiver::FOO
end
assert_match /\Auninitialized constant #{'A' * 120}::FOO$/, error.message
assert_match(/\Auninitialized constant #{'A' * 120}::FOO$/, error.message)
end
end