lib/rr/scenario_creator.rb in rr-0.3.8 vs lib/rr/scenario_creator.rb in rr-0.3.9
- old
+ new
@@ -165,9 +165,10 @@
probe_when_do_not_call_error! if @strategy == :do_not_call
@probe = true
return self if subject.__id__ === NO_SUBJECT_ARG.__id__
RR::Space.scenario_method_proxy(self, subject, method_name, &definition)
end
+ alias_method :proxy, :probe
# Calling instance_of will cause all instances of the passed in Class
# to have the Scenario defined.
#
# The following example mocks all User's valid? method and return false.