summaryrefslogtreecommitdiff
path: root/spec/support/shared_examples/services/service_ping/service_ping_payload_with_all_expected_metrics_shared_examples.rb
blob: 535e7291b7e3fb97d19f9b22d1c6fac764d7b34e (plain)
1
2
3
4
5
6
7
8
9
10
11
# frozen_string_literal: true

RSpec.shared_examples 'service ping payload with all expected metrics' do
  specify do
    aggregate_failures do
      expected_metrics.each do |metric|
        is_expected.to have_usage_metric metric['key_path']
      end
    end
  end
end