diff options
author | Robert Schilling <rschilling@student.tugraz.at> | 2017-08-24 18:03:39 +0200 |
---|---|---|
committer | Robert Schilling <rschilling@student.tugraz.at> | 2017-08-28 17:10:34 +0200 |
commit | 915dd57fe26fb228f30ae08edc4905b24d4c4339 (patch) | |
tree | 887cf877dae6fbc56bd16100a44c52da87b8611f /spec/requests/api/pipeline_schedules_spec.rb | |
parent | dcd4ea473cab20eee05995ecaca043da98ca5a8d (diff) | |
download | gitlab-ce-915dd57fe26fb228f30ae08edc4905b24d4c4339.tar.gz |
Add tests for the unmodified header
Diffstat (limited to 'spec/requests/api/pipeline_schedules_spec.rb')
-rw-r--r-- | spec/requests/api/pipeline_schedules_spec.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/requests/api/pipeline_schedules_spec.rb b/spec/requests/api/pipeline_schedules_spec.rb index 150a391bb8d..b6a5a7ffbb5 100644 --- a/spec/requests/api/pipeline_schedules_spec.rb +++ b/spec/requests/api/pipeline_schedules_spec.rb @@ -275,6 +275,10 @@ describe API::PipelineSchedules do expect(response).to have_http_status(:not_found) end + + it_behaves_like '412 response' do + let(:request) { api("/projects/#{project.id}/pipeline_schedules/#{pipeline_schedule.id}", master) } + end end context 'authenticated user with invalid permissions' do |