Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Jérome Perrin
gitlab-ce
Commits
1f7353ce
Commit
1f7353ce
authored
Jun 21, 2016
by
Rémy Coutable
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix specs
Signed-off-by:
Rémy Coutable
<
remy@rymai.me
>
parent
00ac7ae8
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
14 deletions
+1
-14
features/admin/groups.feature
features/admin/groups.feature
+0
-7
features/steps/admin/groups.rb
features/steps/admin/groups.rb
+1
-7
No files found.
features/admin/groups.feature
View file @
1f7353ce
...
@@ -26,13 +26,6 @@ Feature: Admin Groups
...
@@ -26,13 +26,6 @@ Feature: Admin Groups
When
I visit group page
When
I visit group page
Then
I should see project shared with group
Then
I should see project shared with group
@javascript
Scenario
:
Remove user from group
Given
we have user
"John Doe"
in group
When
I visit admin group page
And
I remove user
"John Doe"
from group
Then
I should not see
"John Doe"
in team list
@javascript
@javascript
Scenario
:
Invite user to a group by e-mail
Scenario
:
Invite user to a group by e-mail
When
I visit admin group page
When
I visit admin group page
...
...
features/steps/admin/groups.rb
View file @
1f7353ce
...
@@ -62,7 +62,7 @@ class Spinach::Features::AdminGroups < Spinach::FeatureSteps
...
@@ -62,7 +62,7 @@ class Spinach::Features::AdminGroups < Spinach::FeatureSteps
step
'I should see "johndoe@gitlab.com" in team list in every project as "Reporter"'
do
step
'I should see "johndoe@gitlab.com" in team list in every project as "Reporter"'
do
page
.
within
".group-users-list"
do
page
.
within
".group-users-list"
do
expect
(
page
).
to
have_content
"johndoe@gitlab.com
(invited)
"
expect
(
page
).
to
have_content
"johndoe@gitlab.com
– Invited by
"
expect
(
page
).
to
have_content
"Reporter"
expect
(
page
).
to
have_content
"Reporter"
end
end
end
end
...
@@ -92,12 +92,6 @@ class Spinach::Features::AdminGroups < Spinach::FeatureSteps
...
@@ -92,12 +92,6 @@ class Spinach::Features::AdminGroups < Spinach::FeatureSteps
current_group
.
add_reporter
(
user_john
)
current_group
.
add_reporter
(
user_john
)
end
end
step
'I remove user "John Doe" from group'
do
page
.
within
"#user_
#{
user_john
.
id
}
"
do
click_link
'Remove user from group'
end
end
step
'I should not see "John Doe" in team list'
do
step
'I should not see "John Doe" in team list'
do
page
.
within
".group-users-list"
do
page
.
within
".group-users-list"
do
expect
(
page
).
not_to
have_content
"John Doe"
expect
(
page
).
not_to
have_content
"John Doe"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment