1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[ruby/irb] Add an assertion to check completion "var.method" to get correct "class.method"

https://github.com/ruby/irb/commit/cc1ddb37a9
This commit is contained in:
aycabta 2021-09-04 05:40:15 +09:00 committed by git
parent 6fa37d2666
commit 9ac32e87bb

View file

@ -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