From 39e33ad1a88826f64bf55521b5b2bc6c7867facd Mon Sep 17 00:00:00 2001
From: Yusuke Endoh <mame@ruby-lang.org>
Date: Thu, 7 Nov 2024 13:17:54 +0900
Subject: [PATCH] Prevent a warning: ambiguous `/`

---
 test/irb/test_context.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/irb/test_context.rb b/test/irb/test_context.rb
index 9fa23ccce..d2c007af3 100644
--- a/test/irb/test_context.rb
+++ b/test/irb/test_context.rb
@@ -706,7 +706,7 @@ def test_build_completor
       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