Copy issue status on project copy (#3877).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3075 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2009-11-16 20:06:37 +00:00
parent e24358bc43
commit 3fc655904f
3 changed files with 21 additions and 0 deletions
+10
View File
@@ -178,6 +178,16 @@ class IssueTest < ActiveSupport::TestCase
assert_equal orig.tracker, issue.tracker
assert_equal orig.custom_values.first.value, issue.custom_values.first.value
end
def test_copy_should_copy_status
orig = Issue.find(8)
assert orig.status != IssueStatus.default
issue = Issue.new.copy_from(orig)
assert issue.save
issue.reload
assert_equal orig.status, issue.status
end
def test_should_close_duplicates
# Create 3 issues