------------------ test/functional/issues_controller_test.rb ------------------ @@ -3913,7 +3913,7 @@ class IssuesControllerTest < ActionController::TestCase + def test_bulk_update_with_author_change + @request.session[:user_id] = 2 + Issue.where(id: [1, 2]).each {|i| i.update_attributes(assigned_to_id: 8)} + post :bulk_update, :ids => [1, 2], :issue => {:project_id => '2', assigned_to_id: 'author'} + Issue.where(id: [1, 2]).each {|i| assert_equal 2, i.assigned_to_id} + end +