Fixup 2e69137dbe9fd7c03dac9b8adc30a7eba3ecb10b
authorHiroshi SHIBATA <[email protected]>
Mon, 22 Jan 2024 22:54:54 +0000 (23 07:54 +0900)
committerHiroshi SHIBATA <[email protected]>
Mon, 22 Jan 2024 23:45:45 +0000 (23 08:45 +0900)
test/irb/test_completion.rb

index 2f97d99..4500fed 100644 (file)
@@ -124,8 +124,9 @@ module TestIRB
       end
 
       def test_complete_require_library_name_first
-        candidates = IRB::RegexpCompletor.new.completion_candidates("require ", "'coverage", "", bind: binding)
-        assert_equal "'coverage", candidates.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
       end
 
       def test_complete_require_relative