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:
commit
60ea455d08
2 changed files with 2 additions and 1 deletions
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue