summaryrefslogtreecommitdiff
path: root/spec/requests
diff options
context:
space:
mode:
authorTomasz Maczukin <tomasz@maczukin.pl>2017-11-27 22:59:01 +0100
committerTomasz Maczukin <tomasz@maczukin.pl>2017-11-28 00:36:50 +0100
commit13a902a9a42c0909ad8c6790c040447a9e12211f (patch)
tree6eb605aae6e13b77905e1df87b2d32842dffc07d /spec/requests
parent9d27ce1630004e37cd0615830857a3135dc8d5fe (diff)
downloadgitlab-ce-13a902a9a42c0909ad8c6790c040447a9e12211f.tar.gz
Refactorize jobs finding logic
Diffstat (limited to 'spec/requests')
-rw-r--r--spec/requests/api/runners_spec.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/requests/api/runners_spec.rb b/spec/requests/api/runners_spec.rb
index 80a8495808d..ec5cad4f4fd 100644
--- a/spec/requests/api/runners_spec.rb
+++ b/spec/requests/api/runners_spec.rb
@@ -401,10 +401,10 @@ describe API::Runners do
end
context 'when invalid status is provided' do
- it 'return 404' do
+ it 'return 400' do
get api("/runners/#{specific_runner.id}/jobs?status=non-existing", admin)
- expect(response).to have_gitlab_http_status(404)
+ expect(response).to have_gitlab_http_status(400)
end
end
end
@@ -454,10 +454,10 @@ describe API::Runners do
end
context 'when invalid status is provided' do
- it 'return 404' do
+ it 'return 400' do
get api("/runners/#{specific_runner.id}/jobs?status=non-existing", user)
- expect(response).to have_gitlab_http_status(404)
+ expect(response).to have_gitlab_http_status(400)
end
end
end