mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
parent
9ac32e87bb
commit
ff372ed74b
1 changed files with 1 additions and 0 deletions
|
@ -86,6 +86,7 @@ module TestIRB
|
||||||
|
|
||||||
def test_complete_variable
|
def test_complete_variable
|
||||||
str_example = ''
|
str_example = ''
|
||||||
|
str_example.clear # suppress "assigned but unused variable" warning
|
||||||
assert_include(IRB::InputCompletor.retrieve_completion_data("str_examp", bind: binding), "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", 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")
|
assert_equal(IRB::InputCompletor.retrieve_completion_data("str_example.to_s", bind: binding, doc_namespace: true), "String.to_s")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue