Project

General

Profile

Patch #24837 » test.diff

Marcin Świątkiewicz, 2017-01-16 09:46

View differences:

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

  
(2-2/4)