From 9284a32c9ac7b932feb72cf0d2d5fb1626ec7862 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Fri, 3 Dec 2010 16:15:16 +0000 Subject: Moves project attributes default assignments from ProjectsController#new to the model (#6064). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4460 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- test/integration/api_test/projects_test.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'test/integration/api_test') diff --git a/test/integration/api_test/projects_test.rb b/test/integration/api_test/projects_test.rb index c74334954..aaf40e1d5 100644 --- a/test/integration/api_test/projects_test.rb +++ b/test/integration/api_test/projects_test.rb @@ -103,6 +103,7 @@ class ApiTest::ProjectsTest < ActionController::IntegrationTest context "POST /projects" do context "with valid parameters" do setup do + Setting.default_projects_modules = ['issue_tracking', 'repository'] @parameters = {:project => {:name => 'API test', :identifier => 'api-test'}} end @@ -121,6 +122,7 @@ class ApiTest::ProjectsTest < ActionController::IntegrationTest project = Project.first(:order => 'id DESC') assert_equal 'API test', project.name assert_equal 'api-test', project.identifier + assert_equal ['issue_tracking', 'repository'], project.enabled_module_names assert_response :created assert_equal 'application/xml', @response.content_type -- cgit v1.2.3