diff options
| author | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2024-01-23 07:54:54 +0900 |
|---|---|---|
| committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2024-01-23 08:45:45 +0900 |
| commit | 706eea9d3c27b9785fc7f650ff9b5d6669908768 (patch) | |
| tree | 34827e8fd433c3759dfb63b0f4e4ab305fd7535e | |
| parent | d8af85ad145a803776bdc61ce0ae486c3dcb9b2b (diff) | |
Fixup 2e69137dbe9fd7c03dac9b8adc30a7eba3ecb10b
| -rw-r--r-- | test/irb/test_completion.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/irb/test_completion.rb b/test/irb/test_completion.rb index 2f97d99faa..4500fedb0b 100644 --- a/test/irb/test_completion.rb +++ b/test/irb/test_completion.rb @@ -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 |
