Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDouglas Barbosa Alexandre <dbalexandre@gmail.com>2015-12-02 00:45:58 +0300
committerDouglas Barbosa Alexandre <dbalexandre@gmail.com>2015-12-02 01:53:43 +0300
commit9ab7bdf7739935bf79c2e033212726a4be421a26 (patch)
tree968d6b8307ae59ca46e8865a49c52f4d08f02d04 /features/steps/shared
parent1ad8b73121c93570bde08ce6fa58b5e50f771603 (diff)
Signed in admin should be able to add/remove himself to a group
Diffstat (limited to 'features/steps/shared')
-rw-r--r--features/steps/shared/group.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/features/steps/shared/group.rb b/features/steps/shared/group.rb
index 58581653f28..fe6736dacd4 100644
--- a/features/steps/shared/group.rb
+++ b/features/steps/shared/group.rb
@@ -1,6 +1,10 @@
module SharedGroup
include Spinach::DSL
+ step 'current user is developer of group "Owned"' do
+ is_member_of(current_user.name, "Owned", Gitlab::Access::DEVELOPER)
+ end
+
step '"John Doe" is owner of group "Owned"' do
is_member_of("John Doe", "Owned", Gitlab::Access::OWNER)
end