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