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
Boxiang Sun
gitlab-ce
Commits
1e3f09b2
Commit
1e3f09b2
authored
Aug 05, 2013
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix tests
parent
128ef337
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
9 deletions
+9
-9
spec/controllers/commit_controller_spec.rb
spec/controllers/commit_controller_spec.rb
+1
-1
spec/features/security/project_access_spec.rb
spec/features/security/project_access_spec.rb
+8
-8
No files found.
spec/controllers/commit_controller_spec.rb
View file @
1e3f09b2
...
...
@@ -3,7 +3,7 @@ require 'spec_helper'
describe
Projects
::
CommitController
do
let
(
:project
)
{
create
(
:project_with_code
)
}
let
(
:user
)
{
create
(
:user
)
}
let
(
:commit
)
{
project
.
repository
.
last_commit_for
(
"master"
)
}
let
(
:commit
)
{
project
.
repository
.
commit
(
"master"
)
}
before
do
sign_in
(
user
)
...
...
spec/features/security/project_access_spec.rb
View file @
1e3f09b2
...
...
@@ -175,8 +175,8 @@ describe "Application access" do
it
{
should
be_denied_for
:visitor
}
end
describe
"GET /project_code/
repository
"
do
subject
{
project_repository
_path
(
project
)
}
describe
"GET /project_code/
branches/recent
"
do
subject
{
recent_project_branches
_path
(
project
)
}
it
{
should
be_allowed_for
master
}
it
{
should
be_allowed_for
reporter
}
...
...
@@ -186,7 +186,7 @@ describe "Application access" do
it
{
should
be_denied_for
:visitor
}
end
describe
"GET /project_code/
repository/
branches"
do
describe
"GET /project_code/branches"
do
subject
{
project_branches_path
(
project
)
}
before
do
...
...
@@ -202,7 +202,7 @@ describe "Application access" do
it
{
should
be_denied_for
:visitor
}
end
describe
"GET /project_code/
repository/
tags"
do
describe
"GET /project_code/tags"
do
subject
{
project_tags_path
(
project
)
}
before
do
...
...
@@ -417,8 +417,8 @@ describe "Application access" do
it
{
should
be_denied_for
:visitor
}
end
describe
"GET /project_code/
repository
"
do
subject
{
project_repository
_path
(
project
)
}
describe
"GET /project_code/
branches/recent
"
do
subject
{
recent_project_branches
_path
(
project
)
}
it
{
should
be_allowed_for
master
}
it
{
should
be_allowed_for
reporter
}
...
...
@@ -428,7 +428,7 @@ describe "Application access" do
it
{
should
be_denied_for
:visitor
}
end
describe
"GET /project_code/
repository/
branches"
do
describe
"GET /project_code/branches"
do
subject
{
project_branches_path
(
project
)
}
before
do
...
...
@@ -444,7 +444,7 @@ describe "Application access" do
it
{
should
be_denied_for
:visitor
}
end
describe
"GET /project_code/
repository/
tags"
do
describe
"GET /project_code/tags"
do
subject
{
project_tags_path
(
project
)
}
before
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