module ActiveSupport::Testing::Assertions
def assert_not(object, message = nil)
An error message can be specified.
assert_not 'foo' # => 'foo' is not nil or false
assert_not false # => true
assert_not nil # => true
like if foo.
+nil+ or +false+. "Truthy" means "considered true in a conditional"
Assert that an expression is not truthy. Passes if object is
def assert_not(object, message = nil) message ||= "Expected #{mu_pp(object)} to be nil or false" assert !object, message end