summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorPawel Chojnacki <pawel@chojnacki.ws>2018-02-06 17:52:51 +0100
committerPawel Chojnacki <pawel@chojnacki.ws>2018-02-06 17:52:51 +0100
commite71a27f082c49a8e132be632cb8fe97f810af987 (patch)
tree9ae954b338d23baed81c46f4794afb6b9a698ac2 /spec
parenta1d10beebe73c96fb741cd9f728292ae32e80fc3 (diff)
downloadgitlab-ce-e71a27f082c49a8e132be632cb8fe97f810af987.tar.gz
fix tests for find or initialize service 'prometheus'
Diffstat (limited to 'spec')
-rw-r--r--spec/models/clusters/applications/prometheus_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/models/clusters/applications/prometheus_spec.rb b/spec/models/clusters/applications/prometheus_spec.rb
index 1102249493c..01037919530 100644
--- a/spec/models/clusters/applications/prometheus_spec.rb
+++ b/spec/models/clusters/applications/prometheus_spec.rb
@@ -14,7 +14,7 @@ describe Clusters::Applications::Prometheus do
subject { create(:clusters_applications_prometheus, :installing, cluster: cluster) }
before do
- allow(project).to receive(:prometheus_service).and_return prometheus_service
+ allow(project).to receive(:find_or_initialize_service).with('prometheus').and_return prometheus_service
end
it 'ensures Prometheus service is activated' do