Method: Minitest::Assertions#assert_includes
- Defined in:
- lib/minitest/assertions.rb
#assert_includes(collection, obj, msg = nil) ⇒ Object
Fails unless collection includes obj.
244 245 246 247 248 249 |
# File 'lib/minitest/assertions.rb', line 244 def assert_includes collection, obj, msg = nil msg = (msg) { "Expected #{mu_pp collection} to include #{mu_pp obj}" } assert_operator collection, :include?, obj, msg end |