diff options
Diffstat (limited to 'features/steps/shared/group.rb')
-rw-r--r-- | features/steps/shared/group.rb | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/features/steps/shared/group.rb b/features/steps/shared/group.rb index 45fad83e8bb..de119f2c6c0 100644 --- a/features/steps/shared/group.rb +++ b/features/steps/shared/group.rb @@ -2,27 +2,27 @@ module SharedGroup include Spinach::DSL step 'current user is developer of group "Owned"' do - member_of?(current_user.name, "Owned", Gitlab::Access::DEVELOPER) + is_member_of(current_user.name, "Owned", Gitlab::Access::DEVELOPER) end step '"John Doe" is owner of group "Owned"' do - member_of?("John Doe", "Owned", Gitlab::Access::OWNER) + is_member_of("John Doe", "Owned", Gitlab::Access::OWNER) end step '"John Doe" is guest of group "Guest"' do - member_of?("John Doe", "Guest", Gitlab::Access::GUEST) + is_member_of("John Doe", "Guest", Gitlab::Access::GUEST) end step '"Mary Jane" is owner of group "Owned"' do - member_of?("Mary Jane", "Owned", Gitlab::Access::OWNER) + is_member_of("Mary Jane", "Owned", Gitlab::Access::OWNER) end step '"Mary Jane" is guest of group "Owned"' do - member_of?("Mary Jane", "Owned", Gitlab::Access::GUEST) + is_member_of("Mary Jane", "Owned", Gitlab::Access::GUEST) end step '"Mary Jane" is guest of group "Guest"' do - member_of?("Mary Jane", "Guest", Gitlab::Access::GUEST) + is_member_of("Mary Jane", "Guest", Gitlab::Access::GUEST) end step 'I should see group "TestGroup"' do @@ -35,7 +35,7 @@ module SharedGroup protected - def member_of?(username, groupname, role) + def is_member_of(username, groupname, role) @project_count ||= 0 user = User.find_by(name: username) || create(:user, name: username) group = Group.find_by(name: groupname) || create(:group, name: groupname) |