diff options
author | Pawel Chojnacki <pawel@chojnacki.ws> | 2018-01-22 16:44:29 +0100 |
---|---|---|
committer | Pawel Chojnacki <pawel@chojnacki.ws> | 2018-01-29 15:13:05 +0100 |
commit | 7772dfb788cead286265b491c0ce28dbcf5f9fd2 (patch) | |
tree | 9bc0178c6d4b5f4fbf232e5881fc6b9eb6b83404 /spec/lib | |
parent | f51147834ee49874f0e3f311d30af622b1623f95 (diff) | |
download | gitlab-ce-7772dfb788cead286265b491c0ce28dbcf5f9fd2.tar.gz |
before -> after
Diffstat (limited to 'spec/lib')
-rw-r--r-- | spec/lib/gitlab/metrics/method_call_spec.rb | 2 | ||||
-rw-r--r-- | spec/lib/gitlab/metrics_spec.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/spec/lib/gitlab/metrics/method_call_spec.rb b/spec/lib/gitlab/metrics/method_call_spec.rb index e3e594a75e4..d9379cfe674 100644 --- a/spec/lib/gitlab/metrics/method_call_spec.rb +++ b/spec/lib/gitlab/metrics/method_call_spec.rb @@ -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 diff --git a/spec/lib/gitlab/metrics_spec.rb b/spec/lib/gitlab/metrics_spec.rb index 1619fbd88b1..9e405e9f736 100644 --- a/spec/lib/gitlab/metrics_spec.rb +++ b/spec/lib/gitlab/metrics_spec.rb @@ -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 |