BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
ae40e855
Commit
ae40e855
authored
Feb 13, 2013
by
Sebastian Ziebell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
API: test checks a 400 code is returned if snippet title not given
parent
82bd0904
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
projects_spec.rb
spec/requests/api/projects_spec.rb
+6
-0
No files found.
spec/requests/api/projects_spec.rb
View file @
ae40e855
...
@@ -400,6 +400,12 @@ describe Gitlab::API do
...
@@ -400,6 +400,12 @@ describe Gitlab::API do
response
.
status
.
should
==
201
response
.
status
.
should
==
201
json_response
[
'title'
].
should
==
'api test'
json_response
[
'title'
].
should
==
'api test'
end
end
it
"should return a 400 error if title is not given"
do
post
api
(
"/projects/
#{
project
.
id
}
/snippets"
,
user
),
file_name:
'sample.rb'
,
code:
'test'
response
.
status
.
should
==
400
end
end
end
describe
"PUT /projects/:id/snippets/:shippet_id"
do
describe
"PUT /projects/:id/snippets/:shippet_id"
do
...
...
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