Project copy: let the user choose what to copy from the source project (everything by default).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2966 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2009-10-24 13:30:23 +00:00
parent 6842941adc
commit 5b787785b4
4 changed files with 113 additions and 63 deletions
+12
View File
@@ -499,6 +499,18 @@ class ProjectTest < ActiveSupport::TestCase
end
end
should "limit copy with :only option" do
assert @project.members.empty?
assert @project.issue_categories.empty?
assert @source_project.issues.any?
assert @project.copy(@source_project, :only => ['members', 'issue_categories'])
assert @project.members.any?
assert @project.issue_categories.any?
assert @project.issues.empty?
end
should "copy issue relations"
should "link issue relations if cross project issue relations are valid"