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
Tatuya Kamada
gitlab-ce
Commits
f7ca46b5
Commit
f7ca46b5
authored
Feb 25, 2014
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Dont test models methods in security specs
Signed-off-by:
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
parent
63044284
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
2 additions
and
22 deletions
+2
-22
spec/features/security/group/group_access_spec.rb
spec/features/security/group/group_access_spec.rb
+0
-5
spec/features/security/group/internal_group_access_spec.rb
spec/features/security/group/internal_group_access_spec.rb
+1
-6
spec/features/security/group/mixed_group_access_spec.rb
spec/features/security/group/mixed_group_access_spec.rb
+0
-5
spec/features/security/group/public_group_access_spec.rb
spec/features/security/group/public_group_access_spec.rb
+1
-6
No files found.
spec/features/security/group/group_access_spec.rb
View file @
f7ca46b5
...
...
@@ -23,11 +23,6 @@ describe "Group access" do
group
.
add_user
(
guest
,
Gitlab
::
Access
::
GUEST
)
end
describe
"Group should not have accessible projects"
do
it
{
group
.
has_projects_accessible_to?
(
nil
).
should
be_false
}
it
{
group
.
has_projects_accessible_to?
(
nonmember
).
should
be_false
}
end
describe
"GET /groups/:path"
do
subject
{
group_path
(
group
)
}
...
...
spec/features/security/group/internal_group_access_spec.rb
View file @
f7ca46b5
...
...
@@ -19,11 +19,6 @@ describe "Group with internal project access" do
create
(
:project
,
group:
group
,
visibility_level:
Gitlab
::
VisibilityLevel
::
INTERNAL
)
end
describe
"Group should have accessible projects for users"
do
it
{
group
.
has_projects_accessible_to?
(
nil
).
should
be_false
}
it
{
group
.
has_projects_accessible_to?
(
nonmember
).
should
be_true
}
end
describe
"GET /groups/:path"
do
subject
{
group_path
(
group
)
}
...
...
spec/features/security/group/mixed_group_access_spec.rb
View file @
f7ca46b5
...
...
@@ -20,11 +20,6 @@ describe "Group access" do
create
(
:project
,
path:
"public_project"
,
group:
group
,
visibility_level:
Gitlab
::
VisibilityLevel
::
PUBLIC
)
end
describe
"Group should have accessible projects"
do
it
{
group
.
has_projects_accessible_to?
(
nil
).
should
be_true
}
it
{
group
.
has_projects_accessible_to?
(
nonmember
).
should
be_true
}
end
describe
"GET /groups/:path"
do
subject
{
group_path
(
group
)
}
...
...
spec/features/security/group/public_group_access_spec.rb
View file @
f7ca46b5
...
...
@@ -19,11 +19,6 @@ describe "Group with public project access" do
create
(
:project
,
group:
group
,
visibility_level:
Gitlab
::
VisibilityLevel
::
PUBLIC
)
end
describe
"Group should have accessible projects"
do
it
{
group
.
has_projects_accessible_to?
(
nil
).
should
be_true
}
it
{
group
.
has_projects_accessible_to?
(
nonmember
).
should
be_true
}
end
describe
"GET /groups/:path"
do
subject
{
group_path
(
group
)
}
...
...
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