diff options
author | Matija Čupić <matteeyah@gmail.com> | 2018-12-16 17:38:36 +0300 |
---|---|---|
committer | Matija Čupić <matteeyah@gmail.com> | 2018-12-20 14:21:49 +0300 |
commit | 178270a0f3689917e3764a128b8a281bb7feae76 (patch) | |
tree | 0c770121c42a6185022c672ad03c0a8c9038e592 /spec/features | |
parent | f7ac8041f7ba3639085c26b4185eda00fd54a6e7 (diff) |
Check for group admin permissions
Diffstat (limited to 'spec/features')
-rw-r--r-- | spec/features/group_variables_spec.rb | 2 | ||||
-rw-r--r-- | spec/features/runners_spec.rb | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/spec/features/group_variables_spec.rb b/spec/features/group_variables_spec.rb index 89e0cdd8ed7..57e3ddfb39c 100644 --- a/spec/features/group_variables_spec.rb +++ b/spec/features/group_variables_spec.rb @@ -7,7 +7,7 @@ describe 'Group variables', :js do let(:page_path) { group_settings_ci_cd_path(group) } before do - group.add_maintainer(user) + group.add_owner(user) gitlab_sign_in(user) visit page_path diff --git a/spec/features/runners_spec.rb b/spec/features/runners_spec.rb index cb7a912946c..09de983f669 100644 --- a/spec/features/runners_spec.rb +++ b/spec/features/runners_spec.rb @@ -259,8 +259,9 @@ describe 'Runners' do context 'group runners in group settings' do let(:group) { create(:group) } + before do - group.add_maintainer(user) + group.add_owner(user) end context 'group with no runners' do |