summaryrefslogtreecommitdiffstats
path: root/test/integration/api_test
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2010-12-03 16:15:16 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2010-12-03 16:15:16 +0000
commit9284a32c9ac7b932feb72cf0d2d5fb1626ec7862 (patch)
treefff2301ee930a2324256ec1d3558b00a3c0ecf15 /test/integration/api_test
parentf6c633212a4ee6a1d598b4c4c5c0027cfeb9d010 (diff)
downloadredmine-9284a32c9ac7b932feb72cf0d2d5fb1626ec7862.tar.gz
redmine-9284a32c9ac7b932feb72cf0d2d5fb1626ec7862.zip
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
Diffstat (limited to 'test/integration/api_test')
-rw-r--r--test/integration/api_test/projects_test.rb2
1 files changed, 2 insertions, 0 deletions
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