gitlabhq/spec
Sebastian Ziebell fd01f3aacd API: fixes a few return codes for project snippets
When using project snippets via API the functions now provide status codes for
different situations other then only returning 404 error. If required parameters are missing,
e.g. `title` when creating a project snippet a 400 (Bad request) error is returned. The snippet
delete function now is idempotent and returns a 200 (Ok) regardless if the snippet with the
given id is available or not. Changing return codes of these functions has the advantage that
the 404 error is used only for resources, which are not available.

Tests added to check these status codes when handling project snippets.
2013-02-13 12:09:16 +01:00
..
contexts Improve CreateContext call. Fixed test 2013-01-18 20:21:13 +02:00
controllers remove unused autogenerated files 2013-01-24 22:31:48 +02:00
factories add path and path_with_namespace to api project entity 2013-01-31 09:11:35 +02:00
helpers remove unused autogenerated files 2013-01-24 22:31:48 +02:00
lib fixing tests after refactoring 2013-02-11 20:28:27 +02:00
mailers Fix mailer tests 2013-02-01 15:37:21 +02:00
models fixing tests after refactoring 2013-02-11 20:28:27 +02:00
observers fixing tests after refactoring 2013-02-11 20:28:27 +02:00
requests API: fixes a few return codes for project snippets 2013-02-13 12:09:16 +01:00
routing Test to show incorrect routing to Compare controller 2013-02-12 19:28:37 +11:00
support Fixed: post-receive, project remove, tests 2013-02-05 12:47:50 +02:00
tasks/gitlab Fix routing issues when navigating over tree, commits etc 2012-12-25 06:14:05 +03:00
workers fixing tests after refactoring 2013-02-11 20:28:27 +02:00
factories.rb Dynamic values must be in blocks if FG 2013-02-12 10:54:56 +04:00
factories_spec.rb Factories spec refactoring after #1616 2012-10-03 13:33:31 +03:00
seed_project.tar.gz Rspec test repo replaced.\nMerge Requests improved 2012-03-13 23:54:49 +02:00
spec_helper.rb No gitolite in project any more 2013-02-11 19:16:59 +02:00