diff options
author | Pawel Chojnacki <pawel@chojnacki.ws> | 2018-02-06 17:52:51 +0100 |
---|---|---|
committer | Pawel Chojnacki <pawel@chojnacki.ws> | 2018-02-06 17:52:51 +0100 |
commit | e71a27f082c49a8e132be632cb8fe97f810af987 (patch) | |
tree | 9ae954b338d23baed81c46f4794afb6b9a698ac2 /spec/models | |
parent | a1d10beebe73c96fb741cd9f728292ae32e80fc3 (diff) | |
download | gitlab-ce-e71a27f082c49a8e132be632cb8fe97f810af987.tar.gz |
fix tests for find or initialize service 'prometheus'
Diffstat (limited to 'spec/models')
-rw-r--r-- | spec/models/clusters/applications/prometheus_spec.rb | 2 |
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 |