summaryrefslogtreecommitdiffstats
path: root/test/unit/project_test.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2011-04-29 07:29:23 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2011-04-29 07:29:23 +0000
commit6153d5ab833cae3f0db4a6495d8916384ab2e31c (patch)
treebb8b0f7cf88cb4218770ae33d5385d6b1b2ed449 /test/unit/project_test.rb
parentf49904569d917e4e2a8304fca98906bcecf31d2d (diff)
downloadredmine-6153d5ab833cae3f0db4a6495d8916384ab2e31c.tar.gz
redmine-6153d5ab833cae3f0db4a6495d8916384ab2e31c.zip
Merged r5265 from trunk.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/branches/1.1-stable@5582 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit/project_test.rb')
-rw-r--r--test/unit/project_test.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/unit/project_test.rb b/test/unit/project_test.rb
index 8eb79fdaa..868641775 100644
--- a/test/unit/project_test.rb
+++ b/test/unit/project_test.rb
@@ -553,6 +553,14 @@ class ProjectTest < ActiveSupport::TestCase
assert_nil Project.next_identifier
end
+ def test_enabled_module_names
+ with_settings :default_projects_modules => ['issue_tracking', 'repository'] do
+ project = Project.new
+
+ project.enabled_module_names = %w(issue_tracking news)
+ assert_equal %w(issue_tracking news), project.enabled_module_names.sort
+ end
+ end
def test_enabled_module_names_should_not_recreate_enabled_modules
project = Project.find(1)