Apply manual rubocop fixes

This commit is contained in:
Sebastian Serth
2021-05-14 11:07:11 +02:00
parent 6cbecb5b39
commit da0a682ffb
109 changed files with 431 additions and 416 deletions

View File

@ -7,8 +7,9 @@ describe Prometheus::Controller do
let(:prometheus_config) { {prometheus_exporter: {enabled: true}} }
def stub_metrics
metrics = %i[@instance_count @rfc_count @rfc_commented_count]
%i[increment decrement observe].each do |method|
%i[@instance_count @rfc_count @rfc_commented_count].each do |metric|
metrics.each do |metric|
allow(described_class.instance_variable_get(metric)).to receive(method)
end
end