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
6954d50f
Commit
6954d50f
authored
Sep 25, 2013
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Dashboard security specs
parent
ea779cc5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
55 additions
and
0 deletions
+55
-0
spec/features/security/dashboard_access_spec.rb
spec/features/security/dashboard_access_spec.rb
+55
-0
No files found.
spec/features/security/dashboard_access_spec.rb
0 → 100644
View file @
6954d50f
require
'spec_helper'
describe
"Dashboard access"
do
describe
"GET /dashboard"
do
subject
{
dashboard_path
}
it
{
should
be_allowed_for
:admin
}
it
{
should
be_allowed_for
:user
}
it
{
should
be_denied_for
:visitor
}
end
describe
"GET /dashboard/issues"
do
subject
{
issues_dashboard_path
}
it
{
should
be_allowed_for
:admin
}
it
{
should
be_allowed_for
:user
}
it
{
should
be_denied_for
:visitor
}
end
describe
"GET /dashboard/merge_requests"
do
subject
{
merge_requests_dashboard_path
}
it
{
should
be_allowed_for
:admin
}
it
{
should
be_allowed_for
:user
}
it
{
should
be_denied_for
:visitor
}
end
describe
"GET /dashboard/projects"
do
subject
{
projects_dashboard_path
}
it
{
should
be_allowed_for
:admin
}
it
{
should
be_allowed_for
:user
}
it
{
should
be_denied_for
:visitor
}
end
describe
"GET /help"
do
subject
{
help_path
}
it
{
should
be_allowed_for
:admin
}
it
{
should
be_allowed_for
:user
}
it
{
should
be_denied_for
:visitor
}
end
describe
"GET /projects/new"
do
it
{
new_project_path
.
should
be_allowed_for
:admin
}
it
{
new_project_path
.
should
be_allowed_for
:user
}
it
{
new_project_path
.
should
be_denied_for
:visitor
}
end
describe
"GET /groups/new"
do
it
{
new_group_path
.
should
be_allowed_for
:admin
}
it
{
new_group_path
.
should
be_allowed_for
:user
}
it
{
new_group_path
.
should
be_denied_for
:visitor
}
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