diff options
author | Robert Speicher <rspeicher@gmail.com> | 2015-08-07 07:20:02 +0300 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2015-08-07 07:20:02 +0300 |
commit | fb6dc1f07de124915e48456bf45c108878687043 (patch) | |
tree | 3b086430eed3f4f88fc2ca6eb77a9476b841ede4 /features/steps/admin | |
parent | 5fb5fd253a960ed33eebc0f6aabeae37aa175fa8 (diff) |
Add `Group#add_*` convenience methods
Encapsulates the logic for `Gitlab::Access::WHATEVER` levels.
Diffstat (limited to 'features/steps/admin')
-rw-r--r-- | features/steps/admin/groups.rb | 2 | ||||
-rw-r--r-- | features/steps/admin/users.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/features/steps/admin/groups.rb b/features/steps/admin/groups.rb index 9cc74a97c3a..83a3f48abe3 100644 --- a/features/steps/admin/groups.rb +++ b/features/steps/admin/groups.rb @@ -58,7 +58,7 @@ class Spinach::Features::AdminGroups < Spinach::FeatureSteps end step 'we have user "John Doe" in group' do - current_group.add_user(user_john, Gitlab::Access::REPORTER) + current_group.add_reporter(user_john) end step 'I remove user "John Doe" from group' do diff --git a/features/steps/admin/users.rb b/features/steps/admin/users.rb index 49e64eeff71..2e17d5c4c2e 100644 --- a/features/steps/admin/users.rb +++ b/features/steps/admin/users.rb @@ -79,7 +79,7 @@ class Spinach::Features::AdminUsers < Spinach::FeatureSteps project.team << [user, :developer] group = create(:group) - group.add_user(user, Gitlab::Access::DEVELOPER) + group.add_developer(user) end step 'click on "Mike" link' do |