Mercurial > hg > soundsoftware-site
diff test/functional/issue_moves_controller_test.rb @ 442:753f1380d6bc cannam
Merge from branch "redmine-1.2"
author | Chris Cannam |
---|---|
date | Mon, 06 Jun 2011 14:41:04 +0100 |
parents | cbce1fd3b1b7 |
children | cbb26bc654de |
line wrap: on
line diff
--- a/test/functional/issue_moves_controller_test.rb Thu Mar 03 15:08:45 2011 +0000 +++ b/test/functional/issue_moves_controller_test.rb Mon Jun 06 14:41:04 2011 +0100 @@ -112,6 +112,19 @@ 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