##// END OF EJS Templates
code layout clean up test_bulk_copy_should_allow_not_changing_the_issue_attributes of IssuesControllerTest...
Toshi MARUYAMA -
r11662:38f6c588ca3a
parent child
Show More
@@ -3672,10 +3672,13 class IssuesControllerTest < ActionController::TestCase
3672 def test_bulk_copy_should_allow_not_changing_the_issue_attributes
3672 def test_bulk_copy_should_allow_not_changing_the_issue_attributes
3673 @request.session[:user_id] = 2
3673 @request.session[:user_id] = 2
3674 issues = [
3674 issues = [
3675 Issue.create!(:project_id => 1, :tracker_id => 1, :status_id => 1, :priority_id => 2, :subject => 'issue 1', :author_id => 1, :assigned_to_id => nil),
3675 Issue.create!(:project_id => 1, :tracker_id => 1, :status_id => 1,
3676 Issue.create!(:project_id => 2, :tracker_id => 3, :status_id => 2, :priority_id => 1, :subject => 'issue 2', :author_id => 2, :assigned_to_id => 3)
3676 :priority_id => 2, :subject => 'issue 1', :author_id => 1,
3677 :assigned_to_id => nil),
3678 Issue.create!(:project_id => 2, :tracker_id => 3, :status_id => 2,
3679 :priority_id => 1, :subject => 'issue 2', :author_id => 2,
3680 :assigned_to_id => 3)
3677 ]
3681 ]
3678
3679 assert_difference 'Issue.count', issues.size do
3682 assert_difference 'Issue.count', issues.size do
3680 post :bulk_update, :ids => issues.map(&:id), :copy => '1',
3683 post :bulk_update, :ids => issues.map(&:id), :copy => '1',
3681 :issue => {
3684 :issue => {
General Comments 0
You need to be logged in to leave comments. Login now