Sha256: 0ec345d747ba5d71e2e5ee7bf2246277cc897c9045e2bfb261fc9ebe55b33fe7

Contents?: true

Size: 388 Bytes

Versions: 2

Compression:

Stored size: 388 Bytes

Contents

module ShouldaExt
  module Assertions
    # Asserts the result of object.blank?
    def assert_blank(object, message = nil)
      assert(object.blank?, message || "Expected object to be blank")
    end

    # Asserts the result of !object.blank?
    def assert_not_blank(object, message = nil)
      assert(!object.blank?, message || "Expected object to not be blank")
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
socialcast_shoulda_ext-0.1.4 lib/shoulda_ext/assertions.rb
socialcast_shoulda_ext-0.1.2 lib/shoulda_ext/assertions.rb