From 4e40b7ddb06b4ac806c85dabf2bd094fdd4bd6d0 Mon Sep 17 00:00:00 2001 From: aycabta Date: Thu, 2 Sep 2021 21:34:53 +0900 Subject: [ruby/irb] Detect the variable class to show doc https://github.com/ruby/irb/commit/33b9bec954 --- test/irb/test_completion.rb | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'test') 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 -- cgit v1.2.3