aboutsummaryrefslogtreecommitdiffstats
path: root/test/irb/test_completion.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/irb/test_completion.rb')
-rw-r--r--test/irb/test_completion.rb3
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