lib/spec/matchers/satisfy.rb in rspec-1.1.12 vs lib/spec/matchers/satisfy.rb in rspec-1.2.0

- old
+ new

@@ -4,21 +4,21 @@ class Satisfy #:nodoc: def initialize(&block) @block = block end - def matches?(given, &block) + def matches?(actual, &block) @block = block if block - @given = given - @block.call(given) + @actual = actual + @block.call(actual) end - def failure_message - "expected #{@given} to satisfy block" + def failure_message_for_should + "expected #{@actual} to satisfy block" end - def negative_failure_message - "expected #{@given} not to satisfy block" + def failure_message_for_should_not + "expected #{@actual} not to satisfy block" end end # :call-seq: # should satisfy {}