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
Léo-Paul Géneau
gitlab-ce
Commits
3ac202c3
Commit
3ac202c3
authored
Feb 29, 2016
by
James Lopez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed merge conflict and refactored specs
parent
6b27b9f9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
6 deletions
+2
-6
spec/requests/api/internal_spec.rb
spec/requests/api/internal_spec.rb
+2
-6
No files found.
spec/requests/api/internal_spec.rb
View file @
3ac202c3
...
@@ -6,8 +6,6 @@ describe API::API, api: true do
...
@@ -6,8 +6,6 @@ describe API::API, api: true do
let
(
:key
)
{
create
(
:key
,
user:
user
)
}
let
(
:key
)
{
create
(
:key
,
user:
user
)
}
let
(
:project
)
{
create
(
:project
)
}
let
(
:project
)
{
create
(
:project
)
}
let
(
:secret_token
)
{
File
.
read
Gitlab
.
config
.
gitlab_shell
.
secret_file
}
let
(
:secret_token
)
{
File
.
read
Gitlab
.
config
.
gitlab_shell
.
secret_file
}
# Project with path ending in .wiki
let
(
:project_wiki
)
{
create
(
:project
,
name:
'my.wiki'
,
path:
'my.wiki'
)
}
describe
"GET /internal/check"
,
no_db:
true
do
describe
"GET /internal/check"
,
no_db:
true
do
it
do
it
do
...
@@ -57,12 +55,10 @@ describe API::API, api: true do
...
@@ -57,12 +55,10 @@ describe API::API, api: true do
end
end
context
"git push with project.wiki"
do
context
"git push with project.wiki"
do
it
'responds with success'
do
before
do
project_wiki
=
create
(
:project
,
name:
'my.wiki'
,
path:
'my.wiki'
)
project_wiki
.
team
<<
[
user
,
:developer
]
project_wiki
.
team
<<
[
user
,
:developer
]
end
it
do
push
(
key
,
project_wiki
)
push
(
key
,
project_wiki
)
expect
(
response
.
status
).
to
eq
(
200
)
expect
(
response
.
status
).
to
eq
(
200
)
...
...
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