Commit 0c9795a7 authored by Shinya Maeda's avatar Shinya Maeda

Improve spec: use go instead of put :update

parent dafc3417
...@@ -267,8 +267,7 @@ describe Projects::PipelineSchedulesController do ...@@ -267,8 +267,7 @@ describe Projects::PipelineSchedulesController do
end end
it 'returns an error that variables are duplciated' do it 'returns an error that variables are duplciated' do
put :update, namespace_id: project.namespace.to_param, go
project_id: project, id: pipeline_schedule, schedule: schedule
expect(assigns(:schedule).errors['variables.key']).not_to be_empty expect(assigns(:schedule).errors['variables.key']).not_to be_empty
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