before -> after

This commit is contained in:
Pawel Chojnacki 2018-01-22 16:44:29 +01:00
parent f51147834e
commit 7772dfb788
2 changed files with 2 additions and 2 deletions

View file

@ -5,7 +5,7 @@ describe Gitlab::Metrics::MethodCall do
let(:method_call) { described_class.new('Foo#bar', :Foo, '#bar', transaction) }
describe '#measure' do
before do
after do
described_class.reload_metric!(:gitlab_method_call_duration_seconds)
end

View file

@ -20,7 +20,7 @@ describe Gitlab::Metrics do
context 'prometheus metrics enabled in config' do
before do
allow(described_class).to receive(:current_application_settings).and_return(prometheus_metrics_enabled: true)
allow(Gitlab::CurrentSettings).to receive(:current_application_settings).and_return(prometheus_metrics_enabled: true)
end
context 'when metrics folder is present' do