summaryrefslogtreecommitdiff
path: root/spec/initializers
diff options
context:
space:
mode:
authorPawel Chojnacki <pawel@chojnacki.ws>2017-09-06 20:36:25 +0200
committerPawel Chojnacki <pawel@chojnacki.ws>2017-11-02 18:11:43 +0100
commitb90bf88b141aa9efa0979111b8820b8cc876b32d (patch)
tree6b00abca014a270a19f79de8e5562fd51d5e2dc2 /spec/initializers
parent6b53dd28c7208746b694696a8015f82520be5766 (diff)
downloadgitlab-ce-b90bf88b141aa9efa0979111b8820b8cc876b32d.tar.gz
Fix rspec errors, and add more tests to MethodCall and ActionView
Diffstat (limited to 'spec/initializers')
-rw-r--r--spec/initializers/8_metrics_spec.rb5
1 files changed, 1 insertions, 4 deletions
diff --git a/spec/initializers/8_metrics_spec.rb b/spec/initializers/8_metrics_spec.rb
index 4e6052a9f80..80c77057065 100644
--- a/spec/initializers/8_metrics_spec.rb
+++ b/spec/initializers/8_metrics_spec.rb
@@ -3,7 +3,6 @@ require 'spec_helper'
describe 'instrument_classes' do
let(:config) { double(:config) }
- let(:unicorn_sampler) { double(:unicorn_sampler) }
let(:influx_sampler) { double(:influx_sampler) }
before do
@@ -11,9 +10,7 @@ describe 'instrument_classes' do
allow(config).to receive(:instrument_methods)
allow(config).to receive(:instrument_instance_method)
allow(config).to receive(:instrument_instance_methods)
- allow(Gitlab::Metrics::UnicornSampler).to receive(:initialize_instance).and_return(unicorn_sampler)
- allow(Gitlab::Metrics::InfluxSampler).to receive(:initialize_instance).and_return(influx_sampler)
- allow(unicorn_sampler).to receive(:start)
+ allow(Gitlab::Metrics::Samplers::InfluxSampler).to receive(:initialize_instance).and_return(influx_sampler)
allow(influx_sampler).to receive(:start)
allow(Gitlab::Application).to receive(:configure)
end