diff options
author | Robert Schilling <rschilling@student.tugraz.at> | 2017-02-27 17:02:25 +0100 |
---|---|---|
committer | Robert Schilling <rschilling@student.tugraz.at> | 2017-02-28 08:32:40 +0100 |
commit | 2b8005ae41e7bd29010d54fe8a2c03c7e58b5c66 (patch) | |
tree | 5c5c577d88e2657592b2328299641040cd67e931 /spec | |
parent | 7d60876bc9c95323be185033f7f86b548fdf4728 (diff) | |
download | gitlab-ce-2b8005ae41e7bd29010d54fe8a2c03c7e58b5c66.tar.gz |
New runner API returns 204api-empty-return
Diffstat (limited to 'spec')
-rw-r--r-- | spec/requests/api/runner_spec.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/spec/requests/api/runner_spec.rb b/spec/requests/api/runner_spec.rb index 73e82647ca0..e83202e4196 100644 --- a/spec/requests/api/runner_spec.rb +++ b/spec/requests/api/runner_spec.rb @@ -123,6 +123,7 @@ describe API::Runner do context 'when no token is provided' do it 'returns 400 error' do delete api('/runners') + expect(response).to have_http_status 400 end end @@ -130,6 +131,7 @@ describe API::Runner do context 'when invalid token is provided' do it 'returns 403 error' do delete api('/runners'), token: 'invalid' + expect(response).to have_http_status 403 end end @@ -139,7 +141,8 @@ describe API::Runner do it 'deletes Runner' do delete api('/runners'), token: runner.token - expect(response).to have_http_status 200 + + expect(response).to have_http_status 204 expect(Ci::Runner.count).to eq(0) end end |