lib/generators/dry_crud/templates/test/custom_assertions.rb
def assert_not_include(collection, element, message = "")
    full_message = build_message(message, "<?> expected not to be included in \n<?>.",
                                 element, collection)
    assert_block(full_message) { !collection.include?(element) }
  end
# Asserts that the element is not included in the collection.
Asserts that the element is not included in the collection.
Asserts that the element is not included in the collection .
def assert_not_include(collection, element, message = "")
    full_message = build_message(message, "<?> expected not to be included in \n<?>.",
                                 element, collection)
    assert_block(full_message) { !collection.include?(element) }
  end
def assert_not_include ( collection , element , message = "" ) full_message = build_message ( message , "<?> expected not to be included in \n<?>." , element , collection ) assert_block ( full_message ) { ! collection . include? ( element ) } end
Asserts that the element is not included in the collection.
Asserts that the element is not included in the collection .
collection
element
message