summaryrefslogtreecommitdiff
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.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/irb/test_completion.rb b/test/irb/test_completion.rb
index ab57762029..260b8a8892 100644
--- a/test/irb/test_completion.rb
+++ b/test/irb/test_completion.rb
@@ -83,5 +83,11 @@ module TestIRB
assert_include candidates, word
end
end
+
+ def test_complete_variable
+ str_example = ''
+ assert_include(IRB::InputCompletor.retrieve_completion_data("str_examp", bind: binding), "str_example")
+ assert_equal(IRB::InputCompletor.retrieve_completion_data("str_example", bind: binding, doc_namespace: true), "String")
+ end
end
end