summaryrefslogtreecommitdiff
path: root/test/ruby
diff options
context:
space:
mode:
authorYusuke Endoh <mame@ruby-lang.org>2021-06-30 13:41:18 +0900
committerYusuke Endoh <mame@ruby-lang.org>2021-06-30 13:41:18 +0900
commitb270b5df2c849879af42cb0d948d970bfe404946 (patch)
tree128a36f522f0219d767f4062a9b3c9f26add1f71 /test/ruby
parent6c6b128c671c27c2c68830439b1618da8f3acfdd (diff)
Prevent "warning: ambiguity between regexp and two divisions"
Diffstat (limited to 'test/ruby')
-rw-r--r--test/ruby/test_name_error.rb2
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