# File lib/test/unit/assertions.rb, line 1304 def assert_not_include(collection, object, message=nil) _wrap_assertion do assert_respond_to(collection, :include?, "The collection must respond to :include?.") full_message = build_message(message, "<?> expected to not include\n<?>.", collection, object) assert_block(full_message) do not collection.include?(object) end end end