Commit e71a27f0 authored by Pawel Chojnacki's avatar Pawel Chojnacki

fix tests for find or initialize service 'prometheus'

parent a1d10bee
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment