Fixed: notes are lost when copying issue(s) (#6901, #8239).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5602 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2011-04-29 13:27:50 +00:00
parent 88a93d7e10
commit fdb0151869
6 changed files with 67 additions and 9 deletions

View File

@@ -112,6 +112,19 @@ class IssueMovesControllerTest < ActionController::TestCase
assert_equal '2009-12-31', issue.due_date.to_s, "Due date is incorrect"
end
end
should "allow adding a note when copying" do
@request.session[:user_id] = 2
assert_difference 'Issue.count', 1 do
post :create, :ids => [1], :copy_options => {:copy => '1'}, :notes => 'Copying one issue', :new_tracker_id => '', :assigned_to_id => 4, :status_id => 3, :start_date => '2009-12-01', :due_date => '2009-12-31'
end
issue = Issue.first(:order => 'id DESC')
assert_equal 1, issue.journals.size
journal = issue.journals.first
assert_equal 0, journal.details.size
assert_equal 'Copying one issue', journal.notes
end
end
def test_copy_to_another_project_should_follow_when_needed