Fix spec in pipeline_schedules_spec.rb

This commit is contained in:
Shinya Maeda 2017-07-07 20:50:26 +09:00
parent f108153cef
commit 45e516c9ff

View file

@ -279,6 +279,8 @@ describe API::PipelineSchedules do
end
context 'authenticated user with invalid permissions' do
let!(:pipeline_schedule) { create(:ci_pipeline_schedule, project: project, owner: master) }
it 'does not delete pipeline_schedule' do
delete api("/projects/#{project.id}/pipeline_schedules/#{pipeline_schedule.id}", developer)