lib/rspec/mocks/verifying_proxy.rb in rspec-mocks-3.6.0.beta1 vs lib/rspec/mocks/verifying_proxy.rb in rspec-mocks-3.6.0.beta2
- old
+ new
@@ -118,10 +118,15 @@
end
optional_callback_invocation_strategy.call(@doubled_module)
end
+ def ensure_implemented(_method_name)
+ return if Mocks.configuration.temporarily_suppress_partial_double_verification
+ super
+ end
+
def method_reference
@method_doubles
end
end
@@ -191,9 +196,11 @@
end
def self.for(object, method_name, proxy)
if ClassNewMethodReference.applies_to?(method_name) { object }
VerifyingExistingClassNewMethodDouble
+ elsif Mocks.configuration.temporarily_suppress_partial_double_verification
+ MethodDouble
else
self
end.new(object, method_name, proxy)
end
end