aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorKoichi Sasada <ko1@atdot.net>2021-01-08 14:44:26 +0900
committerKoichi Sasada <ko1@atdot.net>2021-01-08 14:44:26 +0900
commitd4b7e967b6dc0c4b971cbb3b5444c7fbe93a3f86 (patch)
treed6611ae4065e93e4016efa442b84b8c6802ea5ca /test
parentabdc634f64a440afcdc7f23c9757d27aab4db8a9 (diff)
downloadruby-d4b7e967b6dc0c4b971cbb3b5444c7fbe93a3f86.tar.gz
should use `assert_include` here.
Random ordering test can introduce antoher candidate so it should be `assert_include`.
Diffstat (limited to 'test')
-rw-r--r--test/irb/test_completion.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/irb/test_completion.rb b/test/irb/test_completion.rb
index 39d4be4a5a..984453d059 100644
--- a/test/irb/test_completion.rb
+++ b/test/irb/test_completion.rb
@@ -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