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
Kazuhiko Shiozaki
gitlab-ce
Commits
2dc0f098
Commit
2dc0f098
authored
Oct 19, 2012
by
Nihad Abbasov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix typos in specs
parent
c6102063
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
spec/requests/api/projects_spec.rb
spec/requests/api/projects_spec.rb
+4
-4
No files found.
spec/requests/api/projects_spec.rb
View file @
2dc0f098
...
@@ -46,7 +46,7 @@ describe Gitlab::API do
...
@@ -46,7 +46,7 @@ describe Gitlab::API do
response
.
status
.
should
==
201
response
.
status
.
should
==
201
end
end
it
"should re
ps
ond with 404 on failure"
do
it
"should re
sp
ond with 404 on failure"
do
post
api
(
"/projects"
,
user
)
post
api
(
"/projects"
,
user
)
response
.
status
.
should
==
404
response
.
status
.
should
==
404
end
end
...
@@ -188,7 +188,7 @@ describe Gitlab::API do
...
@@ -188,7 +188,7 @@ describe Gitlab::API do
}.
to
change
{
project
.
hooks
.
count
}.
by
(
1
)
}.
to
change
{
project
.
hooks
.
count
}.
by
(
1
)
end
end
end
end
describe
"PUT /projects/:id/hooks/:hook_id"
do
describe
"PUT /projects/:id/hooks/:hook_id"
do
it
"should update an existing project hook"
do
it
"should update an existing project hook"
do
put
api
(
"/projects/
#{
project
.
code
}
/hooks/
#{
hook
.
id
}
"
,
user
),
put
api
(
"/projects/
#{
project
.
code
}
/hooks/
#{
hook
.
id
}
"
,
user
),
...
@@ -197,7 +197,7 @@ describe Gitlab::API do
...
@@ -197,7 +197,7 @@ describe Gitlab::API do
json_response
[
'url'
].
should
==
'http://example.com'
json_response
[
'url'
].
should
==
'http://example.com'
end
end
end
end
describe
"DELETE /projects/:id/hooks"
do
describe
"DELETE /projects/:id/hooks"
do
it
"should delete hook from project"
do
it
"should delete hook from project"
do
...
@@ -239,7 +239,7 @@ describe Gitlab::API do
...
@@ -239,7 +239,7 @@ describe Gitlab::API do
end
end
describe
"GET /projects/:id/snippets"
do
describe
"GET /projects/:id/snippets"
do
it
"should return a
project snippet
"
do
it
"should return a
n array of project snippets
"
do
get
api
(
"/projects/
#{
project
.
code
}
/snippets"
,
user
)
get
api
(
"/projects/
#{
project
.
code
}
/snippets"
,
user
)
response
.
status
.
should
==
200
response
.
status
.
should
==
200
json_response
.
should
be_an
Array
json_response
.
should
be_an
Array
...
...
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