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