summaryrefslogtreecommitdiffstats
path: root/test/functional
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2013-05-19 04:03:31 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2013-05-19 04:03:31 +0000
commit38f6c588ca3a7f6caa516fb02dc95f4148fbf767 (patch)
treed63f915c977c3351c343f2523a1b7981214846a7 /test/functional
parent7def5b551ddc237c1920b3dc3a20094ecbc8a1ec (diff)
downloadredmine-38f6c588ca3a7f6caa516fb02dc95f4148fbf767.tar.gz
redmine-38f6c588ca3a7f6caa516fb02dc95f4148fbf767.zip
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
Diffstat (limited to 'test/functional')
-rw-r--r--test/functional/issues_controller_test.rb9
1 files changed, 6 insertions, 3 deletions
diff --git a/test/functional/issues_controller_test.rb b/test/functional/issues_controller_test.rb
index 2f11ec58a..e9afa9b0f 100644
--- a/test/functional/issues_controller_test.rb
+++ b/test/functional/issues_controller_test.rb
@@ -3672,10 +3672,13 @@ class IssuesControllerTest < ActionController::TestCase
def test_bulk_copy_should_allow_not_changing_the_issue_attributes
@request.session[:user_id] = 2
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 => 2, :tracker_id => 3, :status_id => 2, :priority_id => 1, :subject => 'issue 2', :author_id => 2, :assigned_to_id => 3)
+ 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 => 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
post :bulk_update, :ids => issues.map(&:id), :copy => '1',
:issue => {