lib/rr/stub_creator.rb in rr-0.1.8 vs lib/rr/stub_creator.rb in rr-0.1.9
- old
+ new
@@ -23,10 +23,10 @@
protected
def method_missing(method_name, *args, &returns)
double = @space.create_double(@subject, method_name)
scenario = @space.create_scenario(double)
- scenario.returns(&returns)
+ scenario.returns(&returns).any_number_of_times
if args.empty?
scenario.with_any_args
else
scenario.with(*args)
end