spec/extensions/mocha.rb in prawn-0.11.1 vs spec/extensions/mocha.rb in prawn-0.12.0
- old
+ new
@@ -10,15 +10,13 @@
# stroke_line were not called.
class ParameterChecker < Mocha::ParametersMatcher
def initialize(&matching_block)
@matching_block = matching_block
- @run_matching_block = false
end
def match?(actual_parameters = [])
- @matching_block.call(*actual_parameters) unless @run_matching_block
- @run_matching_block = true
+ @matching_block.call(*actual_parameters)
true # always succeed
end
end