summaryrefslogtreecommitdiff
path: root/spec/requests
diff options
context:
space:
mode:
authorTomasz Maczukin <tomasz@maczukin.pl>2016-02-17 15:48:58 +0100
committerTomasz Maczukin <tomasz@maczukin.pl>2016-02-19 13:18:49 +0100
commitf8f492e589e27078fe1d061b8ae2264bd798006c (patch)
tree987fc63d99ba7e7596c9accc05278b1531b2c550 /spec/requests
parenta5540b385d91f0c16eaab1137d263c12fe1f2839 (diff)
downloadgitlab-ce-f8f492e589e27078fe1d061b8ae2264bd798006c.tar.gz
Remove unnecessary parameters
Diffstat (limited to 'spec/requests')
-rw-r--r--spec/requests/api/runners_spec.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/spec/requests/api/runners_spec.rb b/spec/requests/api/runners_spec.rb
index d63786d4100..1a4ec44a51b 100644
--- a/spec/requests/api/runners_spec.rb
+++ b/spec/requests/api/runners_spec.rb
@@ -217,7 +217,7 @@ describe API::API, api: true do
context 'authorized user' do
context 'when runner is shared' do
it 'should not update runner' do
- put api("/runners/#{shared_runner.id}", user), description: 'test'
+ put api("/runners/#{shared_runner.id}", user)
expect(response.status).to eq(403)
end
@@ -225,7 +225,7 @@ describe API::API, api: true do
context 'when runner is not shared' do
it 'should not update runner without access to it' do
- put api("/runners/#{specific_runner.id}", user2), description: 'test'
+ put api("/runners/#{specific_runner.id}", user2)
expect(response.status).to eq(403)
end
@@ -244,7 +244,7 @@ describe API::API, api: true do
context 'unauthorized user' do
it 'should not delete runner' do
- put api("/runners/#{specific_runner.id}"), description: 'test'
+ put api("/runners/#{specific_runner.id}")
expect(response.status).to eq(401)
end
@@ -405,7 +405,7 @@ describe API::API, api: true do
context 'authorized user without permissions' do
it 'should not enable runner' do
- post api("/projects/#{project.id}/runners", user2), runner_id: specific_runner2.id
+ post api("/projects/#{project.id}/runners", user2)
expect(response.status).to eq(403)
end
@@ -413,7 +413,7 @@ describe API::API, api: true do
context 'unauthorized user' do
it 'should not enable runner' do
- post api("/projects/#{project.id}/runners"), runner_id: specific_runner2.id
+ post api("/projects/#{project.id}/runners")
expect(response.status).to eq(401)
end