Allow project forums copy.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2976 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2009-10-25 11:23:46 +00:00
parent 6dfe0395a5
commit 6fedbf60d5
4 changed files with 30 additions and 1 deletions
+9
View File
@@ -17,3 +17,12 @@ boards_002:
position: 2
last_message_id:
messages_count: 0
boards_003:
name: Discussion
project_id: 2
topics_count: 0
id: 3
description: Discussion board
position: 1
last_message_id:
messages_count: 0
+9
View File
@@ -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)