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:
parent
6c6b128c67
commit
b270b5df2c
1 changed files with 1 additions and 1 deletions
|
@ -151,6 +151,6 @@ class TestNameError < Test::Unit::TestCase
|
||||||
error = assert_raise(NameError) do
|
error = assert_raise(NameError) do
|
||||||
receiver::FOO
|
receiver::FOO
|
||||||
end
|
end
|
||||||
assert_match /\Auninitialized constant #{'A' * 120}::FOO$/, error.message
|
assert_match(/\Auninitialized constant #{'A' * 120}::FOO$/, error.message)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue