diff options
author | Shinya Maeda <gitlab.shinyamaeda@gmail.com> | 2017-04-05 21:10:10 +0900 |
---|---|---|
committer | Shinya Maeda <gitlab.shinyamaeda@gmail.com> | 2017-05-03 02:11:51 +0900 |
commit | 0aebc829ad15558d5b6c1bb2212956fb193a1def (patch) | |
tree | a24c28ec1dd3fe39269123950797f8e80faeaa4e /spec/requests | |
parent | 41d064659d24d979ab8c1dd282e2162eae318000 (diff) | |
download | gitlab-ce-0aebc829ad15558d5b6c1bb2212956fb193a1def.tar.gz |
Correct typo in pipelines_spec.rb
Diffstat (limited to 'spec/requests')
-rw-r--r-- | spec/requests/api/pipelines_spec.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/spec/requests/api/pipelines_spec.rb b/spec/requests/api/pipelines_spec.rb index b7d61b2cd7c..f9e5316b3de 100644 --- a/spec/requests/api/pipelines_spec.rb +++ b/spec/requests/api/pipelines_spec.rb @@ -88,7 +88,7 @@ describe API::Pipelines do end context 'when scope is invalid' do - it 'returns 400' do + it 'returns bad_request' do get api("/projects/#{project.id}/pipelines", user), scope: 'invalid-scope' expect(response).to have_http_status(:bad_request) @@ -115,7 +115,7 @@ describe API::Pipelines do end context 'when status is invalid' do - it 'returns :bad_request' do + it 'returns bad_request' do get api("/projects/#{project.id}/pipelines", user), status: 'invalid-status' expect(response).to have_http_status(:bad_request) @@ -222,7 +222,7 @@ describe API::Pipelines do end context 'when yaml_errors is invalid' do - it 'returns :bad_request' do + it 'returns bad_request' do get api("/projects/#{project.id}/pipelines", user), yaml_errors: 'invalid-yaml_errors' expect(response).to have_http_status(:bad_request) @@ -246,7 +246,7 @@ describe API::Pipelines do end context 'when sort is invalid' do - it 'sorts as user_id: :desc' do + it 'returns bad_request' do get api("/projects/#{project.id}/pipelines", user), order_by: 'user_id', sort: 'invalid_sort' expect(response).to have_http_status(:bad_request) @@ -255,7 +255,7 @@ describe API::Pipelines do end context 'when order_by is invalid' do - it 'returns :bad_request' do + it 'returns bad_request' do get api("/projects/#{project.id}/pipelines", user), order_by: 'lock_version', sort: 'asc' expect(response).to have_http_status(:bad_request) |