Files
codeocean/spec/support/prometheus_client_stub.rb
2021-04-07 14:06:32 +02:00

16 lines
322 B
Ruby

# frozen_string_literal: true
require 'prometheus_exporter/client'
require 'rails_helper'
module Prometheus
# A stub to disable server functionality in the specs and stub all registered metrics
module StubClient
def send(str)
# Do nothing
end
end
PrometheusExporter::Client.prepend StubClient
end