summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYusuke Endoh <mame@ruby-lang.org>2024-11-07 13:17:54 +0900
committerYusuke Endoh <mame@ruby-lang.org>2024-11-07 13:18:57 +0900
commit6a39e6fc2d0db590ad605f7af9c99d32c64c6a22 (patch)
treeae773c83480ac942263d740defb0b85a71358ae1
parente0d696cdc56faccb1e5877ff372d4294d484a00a (diff)
Prevent a warning: ambiguous `/`
-rw-r--r--test/irb/test_context.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/irb/test_context.rb b/test/irb/test_context.rb
index 9fa23cccef..d2c007af34 100644
--- a/test/irb/test_context.rb
+++ b/test/irb/test_context.rb
@@ -706,7 +706,7 @@ module TestIRB
verbose, $VERBOSE = $VERBOSE, nil
original_completor = IRB.conf[:COMPLETOR]
IRB.conf[:COMPLETOR] = nil
- assert_match /IRB::(Regexp|Type)Completor/, @context.send(:build_completor).class.name
+ assert_match(/IRB::(Regexp|Type)Completor/, @context.send(:build_completor).class.name)
IRB.conf[:COMPLETOR] = :regexp
assert_equal 'IRB::RegexpCompletor', @context.send(:build_completor).class.name
IRB.conf[:COMPLETOR] = :unknown