BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
5bdcef7b
Commit
5bdcef7b
authored
Jul 28, 2015
by
Stan Hu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change before(:all) -> let! to avoid leaking data across tests
Closes
https://github.com/gitlabhq/gitlabhq/issues/9495
parent
02a15d61
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
15 deletions
+15
-15
group_access_spec.rb
spec/features/security/group_access_spec.rb
+15
-15
No files found.
spec/features/security/group_access_spec.rb
View file @
5bdcef7b
...
...
@@ -36,7 +36,7 @@ describe 'Group access', feature: true do
subject
{
group_path
(
group
)
}
context
'with public projects'
do
before
(
:all
)
{
create_project
(
:public
)
}
let!
(
:project
)
{
create_project
(
:public
)
}
it
{
is_expected
.
to
be_allowed_for
group_member
(
:owner
)
}
it
{
is_expected
.
to
be_allowed_for
group_member
(
:master
)
}
...
...
@@ -48,7 +48,7 @@ describe 'Group access', feature: true do
end
context
'with mixed projects'
do
before
(
:all
)
{
create_project
(
:mixed
)
}
let!
(
:project
)
{
create_project
(
:mixed
)
}
it
{
is_expected
.
to
be_allowed_for
group_member
(
:owner
)
}
it
{
is_expected
.
to
be_allowed_for
group_member
(
:master
)
}
...
...
@@ -60,7 +60,7 @@ describe 'Group access', feature: true do
end
context
'with internal projects'
do
before
(
:all
)
{
create_project
(
:internal
)
}
let!
(
:project
)
{
create_project
(
:internal
)
}
it
{
is_expected
.
to
be_allowed_for
group_member
(
:owner
)
}
it
{
is_expected
.
to
be_allowed_for
group_member
(
:master
)
}
...
...
@@ -86,7 +86,7 @@ describe 'Group access', feature: true do
subject
{
issues_group_path
(
group
)
}
context
'with public projects'
do
before
(
:all
)
{
create_project
(
:public
)
}
let!
(
:project
)
{
create_project
(
:public
)
}
it
{
is_expected
.
to
be_allowed_for
group_member
(
:owner
)
}
it
{
is_expected
.
to
be_allowed_for
group_member
(
:master
)
}
...
...
@@ -98,7 +98,7 @@ describe 'Group access', feature: true do
end
context
'with mixed projects'
do
before
(
:all
)
{
create_project
(
:mixed
)
}
let!
(
:project
)
{
create_project
(
:mixed
)
}
it
{
is_expected
.
to
be_allowed_for
group_member
(
:owner
)
}
it
{
is_expected
.
to
be_allowed_for
group_member
(
:master
)
}
...
...
@@ -110,7 +110,7 @@ describe 'Group access', feature: true do
end
context
'with internal projects'
do
before
(
:all
)
{
create_project
(
:internal
)
}
let!
(
:project
)
{
create_project
(
:internal
)
}
it
{
is_expected
.
to
be_allowed_for
group_member
(
:owner
)
}
it
{
is_expected
.
to
be_allowed_for
group_member
(
:master
)
}
...
...
@@ -136,7 +136,7 @@ describe 'Group access', feature: true do
subject
{
merge_requests_group_path
(
group
)
}
context
'with public projects'
do
before
(
:all
)
{
create_project
(
:public
)
}
let!
(
:project
)
{
create_project
(
:public
)
}
it
{
is_expected
.
to
be_allowed_for
group_member
(
:owner
)
}
it
{
is_expected
.
to
be_allowed_for
group_member
(
:master
)
}
...
...
@@ -148,7 +148,7 @@ describe 'Group access', feature: true do
end
context
'with mixed projects'
do
before
(
:all
)
{
create_project
(
:mixed
)
}
let!
(
:project
)
{
create_project
(
:mixed
)
}
it
{
is_expected
.
to
be_allowed_for
group_member
(
:owner
)
}
it
{
is_expected
.
to
be_allowed_for
group_member
(
:master
)
}
...
...
@@ -160,7 +160,7 @@ describe 'Group access', feature: true do
end
context
'with internal projects'
do
before
(
:all
)
{
create_project
(
:internal
)
}
let!
(
:project
)
{
create_project
(
:internal
)
}
it
{
is_expected
.
to
be_allowed_for
group_member
(
:owner
)
}
it
{
is_expected
.
to
be_allowed_for
group_member
(
:master
)
}
...
...
@@ -186,7 +186,7 @@ describe 'Group access', feature: true do
subject
{
group_group_members_path
(
group
)
}
context
'with public projects'
do
before
(
:all
)
{
create_project
(
:public
)
}
let!
(
:project
)
{
create_project
(
:public
)
}
it
{
is_expected
.
to
be_allowed_for
group_member
(
:owner
)
}
it
{
is_expected
.
to
be_allowed_for
group_member
(
:master
)
}
...
...
@@ -198,7 +198,7 @@ describe 'Group access', feature: true do
end
context
'with mixed projects'
do
before
(
:all
)
{
create_project
(
:mixed
)
}
let!
(
:project
)
{
create_project
(
:mixed
)
}
it
{
is_expected
.
to
be_allowed_for
group_member
(
:owner
)
}
it
{
is_expected
.
to
be_allowed_for
group_member
(
:master
)
}
...
...
@@ -210,7 +210,7 @@ describe 'Group access', feature: true do
end
context
'with internal projects'
do
before
(
:all
)
{
create_project
(
:internal
)
}
let!
(
:project
)
{
create_project
(
:internal
)
}
it
{
is_expected
.
to
be_allowed_for
group_member
(
:owner
)
}
it
{
is_expected
.
to
be_allowed_for
group_member
(
:master
)
}
...
...
@@ -236,7 +236,7 @@ describe 'Group access', feature: true do
subject
{
edit_group_path
(
group
)
}
context
'with public projects'
do
before
(
:all
)
{
create_project
(
:public
)
}
let!
(
:project
)
{
create_project
(
:public
)
}
it
{
is_expected
.
to
be_allowed_for
group_member
(
:owner
)
}
it
{
is_expected
.
to
be_denied_for
group_member
(
:master
)
}
...
...
@@ -248,7 +248,7 @@ describe 'Group access', feature: true do
end
context
'with mixed projects'
do
before
(
:all
)
{
create_project
(
:mixed
)
}
let!
(
:project
)
{
create_project
(
:mixed
)
}
it
{
is_expected
.
to
be_allowed_for
group_member
(
:owner
)
}
it
{
is_expected
.
to
be_denied_for
group_member
(
:master
)
}
...
...
@@ -260,7 +260,7 @@ describe 'Group access', feature: true do
end
context
'with internal projects'
do
before
(
:all
)
{
create_project
(
:internal
)
}
let!
(
:project
)
{
create_project
(
:internal
)
}
it
{
is_expected
.
to
be_allowed_for
group_member
(
:owner
)
}
it
{
is_expected
.
to
be_denied_for
group_member
(
:master
)
}
...
...
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