Method: MiniTest::Assertions#assert_includes
- Defined in:
- lib/minitest/unit.rb
permalink #assert_includes(collection, obj, msg = nil) ⇒ Object
Fails unless collection
includes obj
.
142 143 144 145 146 147 148 |
# File 'lib/minitest/unit.rb', line 142 def assert_includes collection, obj, msg = nil msg = (msg) { "Expected #{mu_pp(collection)} to include #{mu_pp(obj)}" } assert_respond_to collection, :include? assert collection.include?(obj), msg end |