code layout clean up test_bulk_copy_should_allow_not_changing_the_issue_attributes of IssuesControllerTest

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11892 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2013-05-19 04:03:31 +00:00
parent 7def5b551d
commit 38f6c588ca
1 changed files with 6 additions and 3 deletions

View File

@ -3672,10 +3672,13 @@ class IssuesControllerTest < ActionController::TestCase
def test_bulk_copy_should_allow_not_changing_the_issue_attributes def test_bulk_copy_should_allow_not_changing_the_issue_attributes
@request.session[:user_id] = 2 @request.session[:user_id] = 2
issues = [ issues = [
Issue.create!(:project_id => 1, :tracker_id => 1, :status_id => 1, :priority_id => 2, :subject => 'issue 1', :author_id => 1, :assigned_to_id => nil), Issue.create!(:project_id => 1, :tracker_id => 1, :status_id => 1,
Issue.create!(:project_id => 2, :tracker_id => 3, :status_id => 2, :priority_id => 1, :subject => 'issue 2', :author_id => 2, :assigned_to_id => 3) :priority_id => 2, :subject => 'issue 1', :author_id => 1,
:assigned_to_id => nil),
Issue.create!(:project_id => 2, :tracker_id => 3, :status_id => 2,
:priority_id => 1, :subject => 'issue 2', :author_id => 2,
:assigned_to_id => 3)
] ]
assert_difference 'Issue.count', issues.size do assert_difference 'Issue.count', issues.size do
post :bulk_update, :ids => issues.map(&:id), :copy => '1', post :bulk_update, :ids => issues.map(&:id), :copy => '1',
:issue => { :issue => {