Method: Assert::Assertions#assert_not_includes
- Defined in:
- lib/assert/assertions.rb
#assert_not_includes(object, collection, desc = nil) ⇒ Object Also known as: assert_not_included, refute_includes, refute_included
81 82 83 84 85 86 |
# File 'lib/assert/assertions.rb', line 81 def assert_not_includes(object, collection, desc = nil) assert(!collection.include?(object), desc) do "Expected #{Assert::U.show(collection, __assert_config__)}"\ " to not include #{Assert::U.show(object, __assert_config__)}." end end |