Commit 3f51da79 authored by syasonik's avatar syasonik

Fix broken spec

parent c0e5c785
......@@ -26,10 +26,8 @@ describe Gitlab::MetricsDashboard::Service, :use_clean_rails_memory_store_cachin
end
context 'when the dashboard is configured incorrectly' do
let(:bad_dashboard) { {} }
before do
allow(described_class).to receive(:system_dashboard).and_return(bad_dashboard)
allow(YAML).to receive(:load_file).and_return({})
end
it 'returns an appropriate message and status code' do
......@@ -37,7 +35,7 @@ describe Gitlab::MetricsDashboard::Service, :use_clean_rails_memory_store_cachin
expect(result.keys).to contain_exactly(:message, :http_status, :status)
expect(result[:status]).to eq(:error)
expect(result[:status]).to eq(:unprocessable_entity)
expect(result[:http_status]).to eq(:unprocessable_entity)
end
end
end
......
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