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
92de0faf
Commit
92de0faf
authored
Mar 19, 2013
by
Sato Hiroyuki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix spec errors.
parent
fc66c183
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
8 deletions
+11
-8
spec/features/projects_spec.rb
spec/features/projects_spec.rb
+1
-1
spec/features/security/project_access_spec.rb
spec/features/security/project_access_spec.rb
+10
-7
No files found.
spec/features/projects_spec.rb
View file @
92de0faf
...
...
@@ -11,7 +11,7 @@ describe "Projects" do
end
it
"should be correct path"
do
expect
{
click_link
"Remove"
}.
to
change
{
Project
.
count
}.
by
(
-
1
)
expect
{
click_link
"Remove
project
"
}.
to
change
{
Project
.
count
}.
by
(
-
1
)
end
end
end
spec/features/security/project_access_spec.rb
View file @
92de0faf
...
...
@@ -230,14 +230,17 @@ describe "Application access" do
end
describe
"GET /project_code/files"
do
subject
{
files_project_path
(
project
)
}
pending
(
"ProjectsController#files have been deleted."
)
do
it
{
should
be_allowed_for
master
}
it
{
should
be_allowed_for
reporter
}
it
{
should
be_denied_for
:admin
}
it
{
should
be_denied_for
guest
}
it
{
should
be_denied_for
:user
}
it
{
should
be_denied_for
:visitor
}
subject
{
files_project_path
(
project
)
}
it
{
should
be_allowed_for
master
}
it
{
should
be_allowed_for
reporter
}
it
{
should
be_denied_for
:admin
}
it
{
should
be_denied_for
guest
}
it
{
should
be_denied_for
:user
}
it
{
should
be_denied_for
:visitor
}
end
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