diff options
author | tomoya ishida <tomoyapenguin@gmail.com> | 2023-10-13 01:54:04 +0900 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2023-10-12 16:54:09 +0000 |
commit | 1126bd8c65ab077392b559fedd8f9b07303313c9 (patch) | |
tree | ab62eb78fb3fafee3c2767ffa4306266e627667a /test/irb | |
parent | 10ba3fc302d68f977ce958b27a46ce0dab537f0c (diff) | |
download | ruby-1126bd8c65ab077392b559fedd8f9b07303313c9.tar.gz |
[ruby/irb] Fix require path completion disturbing string method
completion
(https://github.com/ruby/irb/pull/726)
https://github.com/ruby/irb/commit/e42dc74ce0
Diffstat (limited to 'test/irb')
-rw-r--r-- | test/irb/test_completion.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/irb/test_completion.rb b/test/irb/test_completion.rb index 8402889400..19a6a4740a 100644 --- a/test/irb/test_completion.rb +++ b/test/irb/test_completion.rb @@ -79,6 +79,9 @@ module TestIRB %w['irb/init 'irb/ruby-lex].each do |word| assert_include candidates, word end + # Test string completion not disturbed by require completion + candidates = IRB::RegexpCompletor.new.completion_candidates("'string ", "'.", "", bind: binding) + assert_include candidates, "'.upcase" end def test_complete_require_with_pathname_in_load_path |