diff options
author | Dylan Griffith <dyl.griffith@gmail.com> | 2018-05-09 14:46:34 +0200 |
---|---|---|
committer | Dylan Griffith <dyl.griffith@gmail.com> | 2018-05-16 10:52:28 +0200 |
commit | 846f73b53b8a6d3bc1f18607630d7a7853cb9d13 (patch) | |
tree | df9839140353d8bdfff777ccb71eaad1b1f4e8df /spec/requests | |
parent | 4790e726d31562b68fec283173e9885df8a5cdda (diff) | |
download | gitlab-ce-846f73b53b8a6d3bc1f18607630d7a7853cb9d13.tar.gz |
Allow group runners to be viewed/edited in API
Diffstat (limited to 'spec/requests')
-rw-r--r-- | spec/requests/api/runners_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/requests/api/runners_spec.rb b/spec/requests/api/runners_spec.rb index 981ac768e3a..44eac4b2073 100644 --- a/spec/requests/api/runners_spec.rb +++ b/spec/requests/api/runners_spec.rb @@ -27,7 +27,7 @@ describe API::Runners do end end - let!(:group_runner) { create(:ci_runner, description: 'Group runner', groups: [group]) } + let!(:group_runner) { create(:ci_runner, description: 'Group runner', groups: [group], runner_type: :group_type) } before do # Set project access for users @@ -48,7 +48,7 @@ describe API::Runners do expect(json_response).to be_an Array expect(json_response[0]).to have_key('ip_address') expect(descriptions).to contain_exactly( - 'Project runner', 'Two projects runner' + 'Project runner', 'Two projects runner', 'Group runner' ) expect(shared).to be_falsey end |