Merge branch 'api-project-path' into 'master'

API: Project create docs miss path argument

Fixes #1551

See merge request !1074
This commit is contained in:
Dmitriy Zaporozhets 2014-09-09 11:00:55 +00:00
commit 60ea455d08
2 changed files with 2 additions and 1 deletions

View file

@ -248,6 +248,7 @@ POST /projects
Parameters:
- `name` (required) - new project name
- `path` (optional) - custom repository name for new project. By default generated based on name
- `namespace_id` (optional) - namespace for the new project (defaults to user)
- `description` (optional) - short project description
- `issues_enabled` (optional)

View file

@ -114,6 +114,7 @@ describe API::API, api: true do
it "should assign attributes to project" do
project = attributes_for(:project, {
path: 'camelCasePath',
description: Faker::Lorem.sentence,
issues_enabled: false,
merge_requests_enabled: false,
@ -123,7 +124,6 @@ describe API::API, api: true do
post api("/projects", user), project
project.each_pair do |k,v|
next if k == :path
json_response[k.to_s].should == v
end
end