Commit e70bef40 authored by Pawel Chojnacki's avatar Pawel Chojnacki

Fix failing test that lacked necessary required parameters

parent 4985ba22
......@@ -66,7 +66,7 @@ describe Projects::Prometheus::MetricsController do
describe 'POST #create' do
context 'metric is valid' do
let(:valid_metric) { { prometheus_metric: { title: 'title', query: 'query', group: 'business' } } }
let(:valid_metric) { { prometheus_metric: { title: 'title', query: 'query', group: 'business', y_label: 'label', unit: 'u', legend: 'legend' } } }
it 'shows a success flash message' do
post :create, project_params(valid_metric)
......
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