lib/spec/api/mocks/mock.rb in rspec-0.5.12 vs lib/spec/api/mocks/mock.rb in rspec-0.5.13
- old
+ new
@@ -33,10 +33,10 @@
end
end
def method_missing(sym, *args, &block)
if expectation = find_matching_expectation(sym, *args)
- expectation.verify_message(args, block)
+ expectation.invoke(args, block)
else
begin
# act as null object if method is missing and we ignore them. return value too!
@options[:null_object] ? self : super(sym, *args, &block)
rescue NoMethodError
\ No newline at end of file