1
0
Fork 0
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:
Koichi Sasada 2021-01-08 14:44:26 +09:00
parent abdc634f64
commit d4b7e967b6

View file

@ -50,7 +50,7 @@ module TestIRB
def test_complete_predicate? def test_complete_predicate?
candidates = IRB::InputCompletor.retrieve_completion_data("1.posi", bind: binding) 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) namespace = IRB::InputCompletor.retrieve_completion_data("1.positive?", bind: binding, doc_namespace: true)
assert_equal "Integer.positive?", namespace assert_equal "Integer.positive?", namespace