diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2009-12-24 16:18:15 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2009-12-24 16:18:15 +0000 |
commit | 62c83bdd2e1b06fcd873ba6d638c0bf59e390958 (patch) | |
tree | cfff2b493b317d0b870ce1499725e008f1b85ff1 /test/unit/project_test.rb | |
parent | 24fde6f1096074cc596a3fbab0165f682a554e82 (diff) | |
download | redmine-62c83bdd2e1b06fcd873ba6d638c0bf59e390958.tar.gz redmine-62c83bdd2e1b06fcd873ba6d638c0bf59e390958.zip |
Adds a 'Add subprojects' permission.
* 'Add project' permission will let user create a root project
* 'Add subprojects' permission will let project members create subprojects
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3238 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit/project_test.rb')
-rw-r--r-- | test/unit/project_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/unit/project_test.rb b/test/unit/project_test.rb index 0633c95de..e61ab03fc 100644 --- a/test/unit/project_test.rb +++ b/test/unit/project_test.rb @@ -282,7 +282,7 @@ class ProjectTest < ActiveSupport::TestCase user = User.find(9) assert user.memberships.empty? User.current = user - assert Project.new.allowed_parents.empty? + assert Project.new.allowed_parents.compact.empty? end def test_users_by_role |