diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2011-04-29 12:41:07 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2011-04-29 12:41:07 +0000 |
commit | 88a93d7e1097adf5af6dde85126bedc55c457339 (patch) | |
tree | d1392f574cccf7a3c60de1192fcd179ace05eca4 /test | |
parent | c9f31f0332a8662af152afde6ab83748ceac0fa4 (diff) | |
download | redmine-88a93d7e1097adf5af6dde85126bedc55c457339.tar.gz redmine-88a93d7e1097adf5af6dde85126bedc55c457339.zip |
Fixed: copying an issue keeps the author of the original issue (#6901).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5601 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test')
-rw-r--r-- | test/unit/issue_test.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/unit/issue_test.rb b/test/unit/issue_test.rb index 25f664a3e..ecd7b1ff7 100644 --- a/test/unit/issue_test.rb +++ b/test/unit/issue_test.rb @@ -545,6 +545,13 @@ class IssueTest < ActiveSupport::TestCase assert_equal date, @copy.due_date end + + should "set current user as author" do + User.current = User.find(9) + @copy = @issue.move_to_project(Project.find(3), Tracker.find(2), {:copy => true, :attributes => {}}) + + assert_equal User.current, @copy.author + end end end |