13 lines
354 B
Ruby
13 lines
354 B
Ruby
# frozen_string_literal: true
|
|
|
|
RSpec.shared_examples 'service ping payload without restricted metrics' do
|
|
specify do
|
|
allow(ApplicationRecord.database).to receive(:flavor).and_return(nil)
|
|
|
|
aggregate_failures do
|
|
restricted_metrics.each do |metric|
|
|
is_expected.not_to have_usage_metric metric['key_path']
|
|
end
|
|
end
|
|
end
|
|
end
|