mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
should use assert_include
here.
Random ordering test can introduce antoher candidate so it should be `assert_include`.
This commit is contained in:
parent
abdc634f64
commit
d4b7e967b6
1 changed files with 1 additions and 1 deletions
|
@ -50,7 +50,7 @@ module TestIRB
|
|||
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue