diff options
Diffstat (limited to 'spec/support/shared_examples/services/service_ping/service_ping_payload_without_restricted_metrics_shared_examples.rb')
-rw-r--r-- | spec/support/shared_examples/services/service_ping/service_ping_payload_without_restricted_metrics_shared_examples.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/spec/support/shared_examples/services/service_ping/service_ping_payload_without_restricted_metrics_shared_examples.rb b/spec/support/shared_examples/services/service_ping/service_ping_payload_without_restricted_metrics_shared_examples.rb new file mode 100644 index 00000000000..9f18174cbc7 --- /dev/null +++ b/spec/support/shared_examples/services/service_ping/service_ping_payload_without_restricted_metrics_shared_examples.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +RSpec.shared_examples 'service ping payload without restricted metrics' do + specify do + aggregate_failures do + restricted_metrics.each do |metric| + is_expected.not_to have_usage_metric metric['key_path'] + end + end + end +end |