instance method assert_blank

Ruby on Rails 2.3.18

Since v2.3.18 Last seen in v4.0.13

Available in: v2.3.18 v3.0.20 v3.1.12 v3.2.22.5 v4.0.13

Signature

assert_blank(object)

Test if an expression is blank. Passes if object.blank? is true.

assert_blank [] # => true

Parameters

object req
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

Type at least 2 characters to search.

↑↓ navigate · open · esc close