summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authoraycabta <aycabta@gmail.com>2021-09-04 05:33:03 +0900
committergit <svn-admin@ruby-lang.org>2021-09-04 17:48:20 +0900
commit6fa37d26666b1c7e009d661beb8c13fe39ce1b7f (patch)
tree9a239f940cfba7f582994551040dccd3df5947e6 /test
parentf6bc4b9b977d6bc14bba570fce2ded6c046277ac (diff)
[ruby/irb] Retrieve completed receiver that is a module or class correctly
https://github.com/ruby/irb/commit/b2324727e1
Diffstat (limited to 'test')
-rw-r--r--test/irb/test_completion.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/irb/test_completion.rb b/test/irb/test_completion.rb
index 260b8a8892..a661d68c59 100644
--- a/test/irb/test_completion.rb
+++ b/test/irb/test_completion.rb
@@ -89,5 +89,10 @@ module TestIRB
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
+
+ def test_complete_class_method
+ assert_include(IRB::InputCompletor.retrieve_completion_data("String.new", bind: binding), "String.new")
+ assert_equal(IRB::InputCompletor.retrieve_completion_data("String.new", bind: binding, doc_namespace: true), "String.new")
+ end
end
end