diff --git a/test/irb/test_completion.rb b/test/irb/test_completion.rb index 4500fedb0b..8194463931 100644 --- a/test/irb/test_completion.rb +++ b/test/irb/test_completion.rb @@ -125,8 +125,8 @@ module TestIRB def test_complete_require_library_name_first # Test that library name is completed first with subdirectories - candidates = IRB::RegexpCompletor.new.completion_candidates("require ", "'rubygems", "", bind: binding) - assert_equal "'rubygems", candidates.first + candidates = IRB::RegexpCompletor.new.completion_candidates("require ", "'irb", "", bind: binding) + assert_equal "'irb", candidates.first end def test_complete_require_relative