Commit 64bb0d37 authored by Pawel Chojnacki's avatar Pawel Chojnacki
Browse files

cleanup wip

parent b97d5b65
......@@ -42,6 +42,7 @@
before do
allow(controller).to receive(:deployment).and_return(deployment)
end
context 'when metrics are disabled' do
before do
allow(deployment).to receive(:has_metrics?).and_return false
......@@ -114,6 +115,7 @@
before do
allow(controller).to receive(:deployment).and_return(deployment)
end
context 'when metrics are disabled' do
before do
allow(deployment).to receive(:has_metrics?).and_return false
......
......@@ -338,11 +338,13 @@
context 'when environment has some metrics' do
before do
expect(environment).to receive(:additional_metrics).and_return({
success: true,
data: {},
last_update: 42
})
expect(environment)
.to receive(:additional_metrics)
.and_return({
success: true,
data: {},
last_update: 42
})
end
it 'returns a metrics JSON document' do
......
......@@ -8,7 +8,6 @@
let(:project) { create(:project_empty_repo, namespace: namespace, path: 'services-project') }
let!(:service) { create(:prometheus_service, project: project) }
render_views
before(:all) 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