Skip to content

Commit

Permalink
should use assert_include here.
Browse files Browse the repository at this point in the history
Random ordering test can introduce antoher candidate so it should be
`assert_include`.
  • Loading branch information
ko1 authored and aycabta committed Jan 8, 2021
1 parent 4c74c7d commit 8d11a4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/irb/test_completion.rb
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def test_complete_reserved_words

def test_complete_predicate?
candidates = IRB::InputCompletor.retrieve_completion_data("1.posi", bind: binding)
assert_equal %w[1.positive?], candidates
assert_include candidates, '1.positive?'

namespace = IRB::InputCompletor.retrieve_completion_data("1.positive?", bind: binding, doc_namespace: true)
assert_equal "Integer.positive?", namespace
Expand Down

0 comments on commit 8d11a4e

Please sign in to comment.