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
1ae7af1e
Commit
1ae7af1e
authored
Mar 07, 2018
by
Kim "BKC" Carlbäcker
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix specs
parent
3c0f6da5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
26 deletions
+2
-26
spec/requests/api/internal_spec.rb
spec/requests/api/internal_spec.rb
+2
-26
No files found.
spec/requests/api/internal_spec.rb
View file @
1ae7af1e
...
...
@@ -335,21 +335,8 @@ describe API::Internal do
end
context
"git push"
do
context
"gitaly disabled"
,
:disable_gitaly
do
it
"has the correct payload"
do
push
(
key
,
project
)
expect
(
response
).
to
have_gitlab_http_status
(
200
)
expect
(
json_response
[
"status"
]).
to
be_truthy
expect
(
json_response
[
"repository_path"
]).
to
eq
(
project
.
repository
.
path_to_repo
)
expect
(
json_response
[
"gl_repository"
]).
to
eq
(
"project-
#{
project
.
id
}
"
)
expect
(
json_response
[
"gitaly"
]).
to
be_nil
expect
(
user
).
not_to
have_an_activity_record
end
end
context
"gitaly enabled"
do
it
"has the correct payload"
do
context
'project as namespace/project'
do
it
do
push
(
key
,
project
)
expect
(
response
).
to
have_gitlab_http_status
(
200
)
...
...
@@ -365,17 +352,6 @@ describe API::Internal do
expect
(
user
).
not_to
have_an_activity_record
end
end
context
'project as namespace/project'
do
it
do
push
(
key
,
project
)
expect
(
response
).
to
have_gitlab_http_status
(
200
)
expect
(
json_response
[
"status"
]).
to
be_truthy
expect
(
json_response
[
"repository_path"
]).
to
eq
(
project
.
repository
.
path_to_repo
)
expect
(
json_response
[
"gl_repository"
]).
to
eq
(
"project-
#{
project
.
id
}
"
)
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