summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShinya Maeda <gitlab.shinyamaeda@gmail.com>2017-05-12 21:52:31 +0900
committerShinya Maeda <gitlab.shinyamaeda@gmail.com>2017-05-30 23:55:08 +0900
commit384fd190e513de41a36726e14bfc3651319c7324 (patch)
tree09d5cb9437443c6be77ed4cdd8486411a2ffcfdc
parentfbd3b3d8a245072121784df11b7b41d3257b989f (diff)
downloadgitlab-ce-384fd190e513de41a36726e14bfc3651319c7324.tar.gz
Change status number to ailias
-rw-r--r--spec/requests/api/pipeline_schedules_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/requests/api/pipeline_schedules_spec.rb b/spec/requests/api/pipeline_schedules_spec.rb
index 31a2a4d576c..6a3cc89909d 100644
--- a/spec/requests/api/pipeline_schedules_spec.rb
+++ b/spec/requests/api/pipeline_schedules_spec.rb
@@ -263,7 +263,7 @@ describe API::PipelineSchedules do
it 'does not delete pipeline_schedule' do
delete api("/projects/#{project.id}/pipeline_schedules/#{pipeline_schedule.id}", developer)
- expect(response).to have_http_status(403)
+ expect(response).to have_http_status(:forbidden)
end
end
@@ -271,7 +271,7 @@ describe API::PipelineSchedules do
it 'does not delete pipeline_schedule' do
delete api("/projects/#{project.id}/pipeline_schedules/#{pipeline_schedule.id}")
- expect(response).to have_http_status(401)
+ expect(response).to have_http_status(:unauthorized)
end
end
end