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