From 9ac32e87bba3a6d873b92c587a83e78051a83839 Mon Sep 17 00:00:00 2001 From: aycabta Date: Sat, 4 Sep 2021 05:40:15 +0900 Subject: [ruby/irb] Add an assertion to check completion "var.method" to get correct "class.method" https://github.com/ruby/irb/commit/cc1ddb37a9 --- test/irb/test_completion.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'test') diff --git a/test/irb/test_completion.rb b/test/irb/test_completion.rb index a661d68c59..1fd42999c6 100644 --- a/test/irb/test_completion.rb +++ b/test/irb/test_completion.rb @@ -88,6 +88,7 @@ module TestIRB 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") + assert_equal(IRB::InputCompletor.retrieve_completion_data("str_example.to_s", bind: binding, doc_namespace: true), "String.to_s") end def test_complete_class_method -- cgit v1.2.3