instance method
assert_blank
Ruby on Rails 3.2.22.5
Since v2.3.18 Last seen in v4.0.13Signature
assert_blank(object, message=nil)
Test if an expression is blank. Passes if object.blank? is true.
assert_blank [] # => true
Parameters
-
objectreq -
messageopt = nil
Source
# File activesupport/lib/active_support/testing/assertions.rb, line 83
def assert_blank(object, message=nil)
message ||= "#{object.inspect} is not blank"
assert object.blank?, message
end
Defined in activesupport/lib/active_support/testing/assertions.rb line 83
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::Testing::Assertions