summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorTomasz Maczukin <tomasz@maczukin.pl>2016-02-05 15:35:21 +0100
committerTomasz Maczukin <tomasz@maczukin.pl>2016-02-19 13:18:47 +0100
commit36e7ffea5de84102a7306faf679cdb5b81920f19 (patch)
tree7ef2abe7ee211a87d13716ca2aa0685d5eb7d247 /spec
parent97c88966bb9594449a519d377203206dd6416868 (diff)
downloadgitlab-ce-36e7ffea5de84102a7306faf679cdb5b81920f19.tar.gz
Fix runners filtering
Diffstat (limited to 'spec')
-rw-r--r--spec/requests/api/runners_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/requests/api/runners_spec.rb b/spec/requests/api/runners_spec.rb
index 27ce8c08eb3..efb81bed03f 100644
--- a/spec/requests/api/runners_spec.rb
+++ b/spec/requests/api/runners_spec.rb
@@ -33,7 +33,7 @@ describe API::API, api: true do
end
it 'should filter runners by scope' do
- get api('/runners?scope=specific', user)
+ get api('/runners?scope=active', user)
shared = false || json_response.map{ |r| r['is_shared'] }.inject{ |sum, shr| sum || shr}
expect(response.status).to eq(200)
@@ -78,7 +78,7 @@ describe API::API, api: true do
end
it 'should filter runners by scope' do
- get api('/runners?scope=specific', admin)
+ get api('/runners/all?scope=specific', admin)
shared = false || json_response.map{ |r| r['is_shared'] }.inject{ |sum, shr| sum || shr}
expect(response.status).to eq(200)