summaryrefslogtreecommitdiffstats
path: root/test/integration/admin_test.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2009-05-17 12:59:14 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2009-05-17 12:59:14 +0000
commit8141110eb2698df14694e009e8312eb9df0ce738 (patch)
tree457e4041bc614ae1ea1e57da16a7ce4fc3363185 /test/integration/admin_test.rb
parent9c9dc6e8147a3e0bf3239511c094dc5f9d2a59a0 (diff)
downloadredmine-8141110eb2698df14694e009e8312eb9df0ce738.tar.gz
redmine-8141110eb2698df14694e009e8312eb9df0ce738.zip
Ability to allow non-admin users to create projects (#1007).
This can be enabled in permissions settings. A non-admin user who creates a project is automatically added as a project member (the first role is given, TODO: make this given role configurable). Projects can be added from the public projects list. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2750 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/integration/admin_test.rb')
-rw-r--r--test/integration/admin_test.rb24
1 files changed, 0 insertions, 24 deletions
diff --git a/test/integration/admin_test.rb b/test/integration/admin_test.rb
index 6c1db7503..dd14e6661 100644
--- a/test/integration/admin_test.rb
+++ b/test/integration/admin_test.rb
@@ -39,28 +39,4 @@ class AdminTest < ActionController::IntegrationTest
locked_user = User.try_to_login("psmith", "psmith09")
assert_equal nil, locked_user
end
-
- def test_add_project
- log_user("admin", "admin")
- get "projects/new"
- assert_response :success
- assert_template "projects/add"
- post "projects", :project => { :name => "blog",
- :description => "weblog",
- :identifier => "blog",
- :is_public => 1,
- :custom_field_values => { '3' => 'Beta' }
- }
- assert_redirected_to "admin/projects"
- assert_equal 'Successful creation.', flash[:notice]
-
- project = Project.find_by_name("blog")
- assert_kind_of Project, project
- assert_equal "weblog", project.description
- assert_equal true, project.is_public?
-
- get "admin/projects"
- assert_response :success
- assert_template "admin/projects"
- end
end