summaryrefslogtreecommitdiff
path: root/test/irb
diff options
context:
space:
mode:
authoraycabta <aycabta@gmail.com>2021-09-04 05:40:15 +0900
committergit <svn-admin@ruby-lang.org>2021-09-04 17:48:26 +0900
commit9ac32e87bba3a6d873b92c587a83e78051a83839 (patch)
treecf1f2deaea1644c0e06c0898672632f6baa9df32 /test/irb
parent6fa37d26666b1c7e009d661beb8c13fe39ce1b7f (diff)
[ruby/irb] Add an assertion to check completion "var.method" to get correct "class.method"
https://github.com/ruby/irb/commit/cc1ddb37a9
Diffstat (limited to 'test/irb')
-rw-r--r--test/irb/test_completion.rb1
1 files changed, 1 insertions, 0 deletions
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