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
f2174f2d
Commit
f2174f2d
authored
Jun 26, 2017
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Merge group request access specs under one file
Signed-off-by:
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
parent
5300a894
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
17 deletions
+8
-17
spec/features/groups/members/member_cannot_request_access_to_his_project_spec.rb
...mbers/member_cannot_request_access_to_his_project_spec.rb
+0
-16
spec/features/groups/members/requests_access_spec.rb
spec/features/groups/members/requests_access_spec.rb
+8
-1
No files found.
spec/features/groups/members/member_cannot_request_access_to_his_project_spec.rb
deleted
100644 → 0
View file @
5300a894
require
'spec_helper'
feature
'Groups > Members > Member cannot request access to his project'
,
feature:
true
do
let
(
:member
)
{
create
(
:user
)
}
let
(
:group
)
{
create
(
:group
)
}
background
do
group
.
add_developer
(
member
)
gitlab_sign_in
(
member
)
visit
group_path
(
group
)
end
scenario
'member does not see the request access button'
do
expect
(
page
).
not_to
have_content
'Request Access'
end
end
spec/features/groups/members/
user_
requests_access_spec.rb
→
spec/features/groups/members/requests_access_spec.rb
View file @
f2174f2d
require
'spec_helper'
require
'spec_helper'
feature
'Groups > Members >
User r
equests access'
,
feature:
true
do
feature
'Groups > Members >
R
equests access'
,
feature:
true
do
let
(
:user
)
{
create
(
:user
)
}
let
(
:user
)
{
create
(
:user
)
}
let
(
:owner
)
{
create
(
:user
)
}
let
(
:owner
)
{
create
(
:user
)
}
let
(
:group
)
{
create
(
:group
,
:public
,
:access_requestable
)
}
let
(
:group
)
{
create
(
:group
,
:public
,
:access_requestable
)
}
...
@@ -68,4 +68,11 @@ feature 'Groups > Members > User requests access', feature: true do
...
@@ -68,4 +68,11 @@ feature 'Groups > Members > User requests access', feature: true do
expect
(
group
.
requesters
.
exists?
(
user_id:
user
)).
to
be_falsey
expect
(
group
.
requesters
.
exists?
(
user_id:
user
)).
to
be_falsey
expect
(
page
).
to
have_content
'Your access request to the group has been withdrawn.'
expect
(
page
).
to
have_content
'Your access request to the group has been withdrawn.'
end
end
scenario
'member does not see the request access button'
do
group
.
add_owner
(
user
)
visit
group_path
(
group
)
expect
(
page
).
not_to
have_content
'Request Access'
end
end
end
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