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
iv
gitlab-ce
Commits
ae40e855
Commit
ae40e855
authored
11 years ago
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
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
spec/requests/api/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
response
.
status
.
should
==
201
json_response
[
'title'
].
should
==
'api test'
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
describe
"PUT /projects/:id/snippets/:shippet_id"
do
...
...
This diff is collapsed.
Click to expand it.
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