cartodb-4.42/spec/helpers/metrics_helper.rb

6 lines
130 B
Ruby
Raw Normal View History

2024-04-06 13:25:13 +08:00
module MetricsHelper
def bypass_metrics
Carto::Tracking::Events::Event.any_instance.stubs(:report!).returns(true)
end
end