Patch #24837 » test.diff
3913 |
def test_bulk_update_with_author_change |
|
---|---|---|
3914 |
@request.session[:user_id] = 2 |
|
3915 |
Issue.where(id: [1, 2]).each {|i| i.update_attributes(assigned_to_id: 8)} |
|
3916 |
post :bulk_update, :ids => [1, 2], :issue => {:project_id => '2', assigned_to_id: 'author'} |
|
3917 |
Issue.where(id: [1, 2]).each {|i| assert_equal 2, i.assigned_to_id} |
|
3918 |
end |
|
3919 |