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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
6cbf3079
Commit
6cbf3079
authored
Feb 23, 2017
by
Rémy Coutable
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'fix-git-access-specs-ee' into 'master'
Fit GitAccess specs See merge request !1297
parents
9db16962
dacf2225
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
10 deletions
+12
-10
spec/lib/gitlab/git_access_spec.rb
spec/lib/gitlab/git_access_spec.rb
+12
-10
No files found.
spec/lib/gitlab/git_access_spec.rb
View file @
6cbf3079
...
...
@@ -215,7 +215,9 @@ describe Gitlab::GitAccess, lib: true do
def
stub_git_hooks
# Running the `pre-receive` hook is expensive, and not necessary for this test.
allow_any_instance_of
(
GitHooksService
).
to
receive
(
:execute
).
and_yield
(
GitHooksService
.
new
)
allow_any_instance_of
(
GitHooksService
).
to
receive
(
:execute
)
do
|
service
,
&
block
|
block
.
call
(
service
)
end
end
def
merge_into_protected_branch
...
...
@@ -242,6 +244,7 @@ describe Gitlab::GitAccess, lib: true do
else
project
.
team
<<
[
user
,
role
]
end
end
permissions_matrix
[
role
].
each
do
|
action
,
allowed
|
context
action
do
...
...
@@ -259,7 +262,6 @@ describe Gitlab::GitAccess, lib: true do
end
end
end
end
# Run permission checks for a group
def
self
.
run_group_permission_checks
(
permissions_matrix
)
...
...
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