Skip to content

Commit

Permalink
Suppress "assigned but unused variable" warning
Browse files Browse the repository at this point in the history
  • Loading branch information
aycabta committed Sep 3, 2021
1 parent cc1ddb3 commit a1ddf64
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/irb/test_completion.rb
Expand Up @@ -86,6 +86,7 @@ def test_complete_require_relative

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")
Expand Down

0 comments on commit a1ddf64

Please sign in to comment.