summaryrefslogtreecommitdiffstats
path: root/test/unit/project_test.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2009-10-25 11:23:46 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2009-10-25 11:23:46 +0000
commit6fedbf60d5a9bb2747b1e250ffc9f5f4947676f6 (patch)
treeac8fa3b202cf53627363c5fcf789b7acafe905b4 /test/unit/project_test.rb
parent6dfe0395a5890016bd9124fa2f1e9e69d4ed94d0 (diff)
downloadredmine-6fedbf60d5a9bb2747b1e250ffc9f5f4947676f6.tar.gz
redmine-6fedbf60d5a9bb2747b1e250ffc9f5f4947676f6.zip
Allow project forums copy.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2976 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit/project_test.rb')
-rw-r--r--test/unit/project_test.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/unit/project_test.rb b/test/unit/project_test.rb
index a08b5f856..082a850b8 100644
--- a/test/unit/project_test.rb
+++ b/test/unit/project_test.rb
@@ -488,6 +488,15 @@ class ProjectTest < ActiveSupport::TestCase
end
end
+ should "copy boards" do
+ assert @project.copy(@source_project)
+
+ assert_equal 1, @project.boards.size
+ @project.boards.each do |board|
+ assert !@source_project.boards.include?(board)
+ end
+ end
+
should "change the new issues to use the copied issue categories" do
issue = Issue.find(4)
issue.update_attribute(:category_id, 3)