module Bacon::CustomMatchersMessages

Extend bacon for errors messages of custom matchers

Constants

VERSION

Public Instance Methods

satisfy(description = '') { |object| ... } click to toggle source
Calls superclass method
# File lib/bacon/custom_matchers_messages.rb, line 8
def satisfy(description = '', &block)
        r = yield(@object)
        if r.is_a? String
                description = r
                block = ->(_obj) { false }
        end
        super(description, &block)
end