Commit cfa15d08 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Remove default_branch support from API project creation

Signed-off-by: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
parent 580dfe5a
...@@ -213,7 +213,6 @@ Parameters: ...@@ -213,7 +213,6 @@ Parameters:
+ `name` (required) - new project name + `name` (required) - new project name
+ `description` (optional) - short project description + `description` (optional) - short project description
+ `default_branch` (optional) - 'master' by default
+ `issues_enabled` (optional) + `issues_enabled` (optional)
+ `wall_enabled` (optional) + `wall_enabled` (optional)
+ `merge_requests_enabled` (optional) + `merge_requests_enabled` (optional)
......
...@@ -60,7 +60,6 @@ module API ...@@ -60,7 +60,6 @@ module API
# Parameters: # Parameters:
# name (required) - name for new project # name (required) - name for new project
# description (optional) - short project description # description (optional) - short project description
# default_branch (optional) - 'master' by default
# issues_enabled (optional) # issues_enabled (optional)
# wall_enabled (optional) # wall_enabled (optional)
# merge_requests_enabled (optional) # merge_requests_enabled (optional)
...@@ -75,7 +74,6 @@ module API ...@@ -75,7 +74,6 @@ module API
attrs = attributes_for_keys [:name, attrs = attributes_for_keys [:name,
:path, :path,
:description, :description,
:default_branch,
:issues_enabled, :issues_enabled,
:wall_enabled, :wall_enabled,
:merge_requests_enabled, :merge_requests_enabled,
......
...@@ -91,7 +91,6 @@ describe API::API do ...@@ -91,7 +91,6 @@ describe API::API do
it "should assign attributes to project" do it "should assign attributes to project" do
project = attributes_for(:project, { project = attributes_for(:project, {
description: Faker::Lorem.sentence, description: Faker::Lorem.sentence,
default_branch: 'stable',
issues_enabled: false, issues_enabled: false,
wall_enabled: false, wall_enabled: false,
merge_requests_enabled: false, merge_requests_enabled: false,
...@@ -110,16 +109,13 @@ describe API::API do ...@@ -110,16 +109,13 @@ describe API::API do
project = attributes_for(:project, { public: true }) project = attributes_for(:project, { public: true })
post api("/projects", user), project post api("/projects", user), project
json_response['public'].should be_true json_response['public'].should be_true
end end
it "should set a project as private" do it "should set a project as private" do
project = attributes_for(:project, { public: false }) project = attributes_for(:project, { public: false })
post api("/projects", user), project post api("/projects", user), project
json_response['public'].should be_false json_response['public'].should be_false
end end
end end
describe "POST /projects/user/:id" do describe "POST /projects/user/:id" do
...@@ -146,7 +142,6 @@ describe API::API do ...@@ -146,7 +142,6 @@ describe API::API do
it "should assign attributes to project" do it "should assign attributes to project" do
project = attributes_for(:project, { project = attributes_for(:project, {
description: Faker::Lorem.sentence, description: Faker::Lorem.sentence,
default_branch: 'stable',
issues_enabled: false, issues_enabled: false,
wall_enabled: false, wall_enabled: false,
merge_requests_enabled: false, merge_requests_enabled: false,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment