test/test_helper.rb in newrelic_rpm-3.5.5.540.dev vs test/test_helper.rb in newrelic_rpm-3.5.6.42.beta
- old
+ new
@@ -142,13 +142,11 @@
def expects_logging(level, *with_params)
::NewRelic::Agent.logger.stubs(level)
::NewRelic::Agent.logger.expects(level).with(*with_params).once
end
-# Similarly, have to be specific about the message we "never" expect...
-def expects_no_logging(level, *with_params)
- ::NewRelic::Agent.logger.stubs(level)
- ::NewRelic::Agent.logger.expects(level).with(*with_params).never
+def expects_no_logging(level)
+ ::NewRelic::Agent.logger.expects(level).never
end
# Sometimes need to test cases where we muddle with the global logger
# If so, use this method to ensure it gets restored after we're done
def without_logger