diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/irb/test_completion.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/irb/test_completion.rb b/test/irb/test_completion.rb index 1fd42999c6..c534301bc6 100644 --- a/test/irb/test_completion.rb +++ b/test/irb/test_completion.rb @@ -86,6 +86,7 @@ module TestIRB def test_complete_variable 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_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") |