lib/stump/mock.rb in motion-stump-0.3.0 vs lib/stump/mock.rb in motion-stump-0.3.1

- old
+ new

@@ -21,10 +21,10 @@ raise ArgumentError if block.arity >= 0 && args.length != block.arity Stump::Mocks.verify([self, method]) block.call(*args) end - elsif options[:yield] + elsif !options[:yield].nil? lambda do |*args| Stump::Mocks.verify([self, method]) yield(options[:yield]) end else