class BaconExpect::Matcher::Satisfy
Public Class Methods
new(&condition_block)
click to toggle source
# File lib/bacon-expect/matchers/satisfy.rb, line 3 def initialize(&condition_block) @condition_block = condition_block end
Public Instance Methods
fail!(subject, negated)
click to toggle source
# File lib/bacon-expect/matchers/satisfy.rb, line 11 def fail!(subject, negated) raise FailedExpectation.new(FailMessageRenderer.message_for_satisfy(negated)) end
matches?(*values)
click to toggle source
# File lib/bacon-expect/matchers/satisfy.rb, line 7 def matches?(*values) @condition_block.call(*values) end