Fix spec in pipeline_schedules_spec.rb
This commit is contained in:
parent
f108153cef
commit
45e516c9ff
1 changed files with 2 additions and 0 deletions
|
@ -279,6 +279,8 @@ describe API::PipelineSchedules do
|
||||||
end
|
end
|
||||||
|
|
||||||
context 'authenticated user with invalid permissions' do
|
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
|
it 'does not delete pipeline_schedule' do
|
||||||
delete api("/projects/#{project.id}/pipeline_schedules/#{pipeline_schedule.id}", developer)
|
delete api("/projects/#{project.id}/pipeline_schedules/#{pipeline_schedule.id}", developer)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue