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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
c56c8124
Commit
c56c8124
authored
Jun 06, 2017
by
Rémy Coutable
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix spec/features/projects/members/member_is_removed_from_project_spec.rb
Signed-off-by:
Rémy Coutable
<
remy@rymai.me
>
parent
6c7f1c57
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
spec/features/projects/members/member_is_removed_from_project_spec.rb
...s/projects/members/member_is_removed_from_project_spec.rb
+2
-2
No files found.
spec/features/projects/members/member_is_removed_from_project_spec.rb
View file @
c56c8124
...
@@ -11,7 +11,7 @@ feature 'Projects > Members > Member is removed from project', feature: true do
...
@@ -11,7 +11,7 @@ feature 'Projects > Members > Member is removed from project', feature: true do
end
end
scenario
'user is removed from project'
do
scenario
'user is removed from project'
do
within
(
".project_member"
)
{
find
(
".btn-remove"
).
click
}
click_link
'Leave'
expect
(
project
.
users
.
exists?
(
user
.
id
)).
to
be_falsey
expect
(
project
.
users
.
exists?
(
user
.
id
)).
to
be_falsey
end
end
...
@@ -22,7 +22,7 @@ feature 'Projects > Members > Member is removed from project', feature: true do
...
@@ -22,7 +22,7 @@ feature 'Projects > Members > Member is removed from project', feature: true do
let!
(
:non_matching_protected_branch
)
{
create
(
:protected_branch
,
authorize_user_to_push:
other_user
,
authorize_user_to_merge:
other_user
,
project:
project
)
}
let!
(
:non_matching_protected_branch
)
{
create
(
:protected_branch
,
authorize_user_to_push:
other_user
,
authorize_user_to_merge:
other_user
,
project:
project
)
}
scenario
'user leaves project'
do
scenario
'user leaves project'
do
within
(
".project_member"
)
{
find
(
".btn-remove"
).
click
}
click_link
'Leave'
expect
(
project
.
users
.
exists?
(
user
.
id
)).
to
be_falsey
expect
(
project
.
users
.
exists?
(
user
.
id
)).
to
be_falsey
expect
(
matching_protected_branch
.
push_access_levels
.
where
(
user:
user
)).
not_to
exist
expect
(
matching_protected_branch
.
push_access_levels
.
where
(
user:
user
)).
not_to
exist
...
...
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