diff options
author | Yusuke Endoh <[email protected]> | 2021-06-30 13:41:18 +0900 |
---|---|---|
committer | Yusuke Endoh <[email protected]> | 2021-06-30 13:41:18 +0900 |
commit | b270b5df2c849879af42cb0d948d970bfe404946 (patch) | |
tree | 128a36f522f0219d767f4062a9b3c9f26add1f71 /test/ruby/test_name_error.rb | |
parent | 6c6b128c671c27c2c68830439b1618da8f3acfdd (diff) |
Prevent "warning: ambiguity between regexp and two divisions"
Diffstat (limited to 'test/ruby/test_name_error.rb')
-rw-r--r-- | test/ruby/test_name_error.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ruby/test_name_error.rb b/test/ruby/test_name_error.rb index 8fcc2dcb26..f0402de4b9 100644 --- a/test/ruby/test_name_error.rb +++ b/test/ruby/test_name_error.rb @@ -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 |