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
e55e224c
Commit
e55e224c
authored
Aug 04, 2016
by
Jacob Vosmaer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix ArgumentError in GitAccess specs
parent
b8f754dd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
spec/lib/gitlab/git_access_spec.rb
spec/lib/gitlab/git_access_spec.rb
+6
-6
No files found.
spec/lib/gitlab/git_access_spec.rb
View file @
e55e224c
...
@@ -19,11 +19,11 @@ describe Gitlab::GitAccess, lib: true do
...
@@ -19,11 +19,11 @@ describe Gitlab::GitAccess, lib: true do
end
end
it
'blocks ssh git push'
do
it
'blocks ssh git push'
do
expect
(
@acc
.
check
(
'git-receive-pack'
).
allowed?
).
to
be_falsey
expect
(
@acc
.
check
(
'git-receive-pack'
,
'_any'
).
allowed?
).
to
be_falsey
end
end
it
'blocks ssh git pull'
do
it
'blocks ssh git pull'
do
expect
(
@acc
.
check
(
'git-upload-pack'
).
allowed?
).
to
be_falsey
expect
(
@acc
.
check
(
'git-upload-pack'
,
'_any'
).
allowed?
).
to
be_falsey
end
end
end
end
...
@@ -34,17 +34,17 @@ describe Gitlab::GitAccess, lib: true do
...
@@ -34,17 +34,17 @@ describe Gitlab::GitAccess, lib: true do
end
end
it
'blocks http push'
do
it
'blocks http push'
do
expect
(
@acc
.
check
(
'git-receive-pack'
).
allowed?
).
to
be_falsey
expect
(
@acc
.
check
(
'git-receive-pack'
,
'_any'
).
allowed?
).
to
be_falsey
end
end
it
'blocks http git pull'
do
it
'blocks http git pull'
do
expect
(
@acc
.
check
(
'git-upload-pack'
).
allowed?
).
to
be_falsey
expect
(
@acc
.
check
(
'git-upload-pack'
,
'_any'
).
allowed?
).
to
be_falsey
end
end
end
end
end
end
describe
'download_access_check'
do
describe
'download_access_check'
do
subject
{
access
.
check
(
'git-upload-pack'
)
}
subject
{
access
.
check
(
'git-upload-pack'
,
'_any'
)
}
describe
'master permissions'
do
describe
'master permissions'
do
before
{
project
.
team
<<
[
user
,
:master
]
}
before
{
project
.
team
<<
[
user
,
:master
]
}
...
@@ -288,7 +288,7 @@ describe Gitlab::GitAccess, lib: true do
...
@@ -288,7 +288,7 @@ describe Gitlab::GitAccess, lib: true do
let
(
:actor
)
{
key
}
let
(
:actor
)
{
key
}
context
'push code'
do
context
'push code'
do
subject
{
access
.
check
(
'git-receive-pack'
)
}
subject
{
access
.
check
(
'git-receive-pack'
,
'_any'
)
}
context
'when project is authorized'
do
context
'when project is authorized'
do
before
{
key
.
projects
<<
project
}
before
{
key
.
projects
<<
project
}
...
...
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