9 def matches?(actual, &block)
10 @block = block if block
16 "expected #{@actual} to satisfy block"
19 def negative_failure_message
20 "expected #{@actual} not to satisfy block"
26 # should_not satisfy {}
28 # Passes if the submitted block returns true. Yields target to the
31 # Generally speaking, this should be thought of as a last resort when
32 # you can't find any other way to specify the behaviour you wish to
35 # If you do find yourself in such a situation, you could always write
36 # a custom matcher, which would likely make your specs more expressive.
40 # 5.should satisfy { |n|
44 Matchers::Satisfy.new(&block)