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
Léo-Paul Géneau
gitlab-ce
Commits
abe39684
Commit
abe39684
authored
Jul 26, 2017
by
Robert Speicher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use `empty_project` where possible in spec/features/security
parent
56ae036e
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
9 additions
and
6 deletions
+9
-6
spec/features/security/group/internal_access_spec.rb
spec/features/security/group/internal_access_spec.rb
+2
-1
spec/features/security/group/private_access_spec.rb
spec/features/security/group/private_access_spec.rb
+2
-1
spec/features/security/group/public_access_spec.rb
spec/features/security/group/public_access_spec.rb
+2
-1
spec/features/security/project/internal_access_spec.rb
spec/features/security/project/internal_access_spec.rb
+1
-1
spec/features/security/project/private_access_spec.rb
spec/features/security/project/private_access_spec.rb
+1
-1
spec/features/security/project/public_access_spec.rb
spec/features/security/project/public_access_spec.rb
+1
-1
No files found.
spec/features/security/group/internal_access_spec.rb
View file @
abe39684
...
...
@@ -4,7 +4,7 @@ describe 'Internal Group access' do
include
AccessMatchers
let
(
:group
)
{
create
(
:group
,
:internal
)
}
let
(
:project
)
{
create
(
:project
,
:internal
,
group:
group
)
}
let
(
:project
)
{
create
(
:
empty_
project
,
:internal
,
group:
group
)
}
let
(
:project_guest
)
do
create
(
:user
)
do
|
user
|
project
.
add_guest
(
user
)
...
...
@@ -49,6 +49,7 @@ describe 'Internal Group access' do
end
describe
'GET /groups/:path/merge_requests'
do
let
(
:project
)
{
create
(
:project
,
:internal
,
:repository
,
group:
group
)
}
subject
{
merge_requests_group_path
(
group
)
}
it
{
is_expected
.
to
be_allowed_for
(
:admin
)
}
...
...
spec/features/security/group/private_access_spec.rb
View file @
abe39684
...
...
@@ -4,7 +4,7 @@ describe 'Private Group access' do
include
AccessMatchers
let
(
:group
)
{
create
(
:group
,
:private
)
}
let
(
:project
)
{
create
(
:project
,
:private
,
group:
group
)
}
let
(
:project
)
{
create
(
:
empty_
project
,
:private
,
group:
group
)
}
let
(
:project_guest
)
do
create
(
:user
)
do
|
user
|
project
.
add_guest
(
user
)
...
...
@@ -49,6 +49,7 @@ describe 'Private Group access' do
end
describe
'GET /groups/:path/merge_requests'
do
let
(
:project
)
{
create
(
:project
,
:private
,
:repository
,
group:
group
)
}
subject
{
merge_requests_group_path
(
group
)
}
it
{
is_expected
.
to
be_allowed_for
(
:admin
)
}
...
...
spec/features/security/group/public_access_spec.rb
View file @
abe39684
...
...
@@ -4,7 +4,7 @@ describe 'Public Group access' do
include
AccessMatchers
let
(
:group
)
{
create
(
:group
,
:public
)
}
let
(
:project
)
{
create
(
:project
,
:public
,
group:
group
)
}
let
(
:project
)
{
create
(
:
empty_
project
,
:public
,
group:
group
)
}
let
(
:project_guest
)
do
create
(
:user
)
do
|
user
|
project
.
add_guest
(
user
)
...
...
@@ -49,6 +49,7 @@ describe 'Public Group access' do
end
describe
'GET /groups/:path/merge_requests'
do
let
(
:project
)
{
create
(
:project
,
:public
,
:repository
,
group:
group
)
}
subject
{
merge_requests_group_path
(
group
)
}
it
{
is_expected
.
to
be_allowed_for
(
:admin
)
}
...
...
spec/features/security/project/internal_access_spec.rb
View file @
abe39684
...
...
@@ -3,7 +3,7 @@ require 'spec_helper'
describe
"Internal Project Access"
do
include
AccessMatchers
set
(
:project
)
{
create
(
:project
,
:internal
)
}
set
(
:project
)
{
create
(
:project
,
:internal
,
:repository
)
}
describe
"Project should be internal"
do
describe
'#internal?'
do
...
...
spec/features/security/project/private_access_spec.rb
View file @
abe39684
...
...
@@ -3,7 +3,7 @@ require 'spec_helper'
describe
"Private Project Access"
do
include
AccessMatchers
set
(
:project
)
{
create
(
:project
,
:private
,
public_builds:
false
)
}
set
(
:project
)
{
create
(
:project
,
:private
,
:repository
,
public_builds:
false
)
}
describe
"Project should be private"
do
describe
'#private?'
do
...
...
spec/features/security/project/public_access_spec.rb
View file @
abe39684
...
...
@@ -3,7 +3,7 @@ require 'spec_helper'
describe
"Public Project Access"
do
include
AccessMatchers
set
(
:project
)
{
create
(
:project
,
:public
)
}
set
(
:project
)
{
create
(
:project
,
:public
,
:repository
)
}
describe
"Project should be public"
do
describe
'#public?'
do
...
...
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