summaryrefslogtreecommitdiffstats
path: root/test/functional
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2013-05-19 04:03:21 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2013-05-19 04:03:21 +0000
commit7def5b551ddc237c1920b3dc3a20094ecbc8a1ec (patch)
treeb9992941d56e9bc728bee8474b85512b11a8d928 /test/functional
parenta968c1196e7999100201b7c5c1cf16a9078c0788 (diff)
downloadredmine-7def5b551ddc237c1920b3dc3a20094ecbc8a1ec.tar.gz
redmine-7def5b551ddc237c1920b3dc3a20094ecbc8a1ec.zip
code layout clean up test_bulk_update_with_some_failures_should_show_errors of IssuesControllerTest
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11891 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional')
-rw-r--r--test/functional/issues_controller_test.rb12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/functional/issues_controller_test.rb b/test/functional/issues_controller_test.rb
index cadb9ca50..2f11ec58a 100644
--- a/test/functional/issues_controller_test.rb
+++ b/test/functional/issues_controller_test.rb
@@ -3617,15 +3617,15 @@ class IssuesControllerTest < ActionController::TestCase
issue1 = Issue.generate!(:start_date => '2013-05-12')
issue2 = Issue.generate!(:start_date => '2013-05-15')
issue3 = Issue.generate!
-
@request.session[:user_id] = 2
- post :bulk_update, :ids => [issue1.id, issue2.id, issue3.id], :issue => {:due_date => '2013-05-01'}
-
+ post :bulk_update, :ids => [issue1.id, issue2.id, issue3.id],
+ :issue => {:due_date => '2013-05-01'}
assert_response :success
assert_template 'bulk_edit'
- assert_select '#errorExplanation span', :text => "Failed to save 2 issue(s) on 3 selected: ##{issue1.id}, ##{issue2.id}."
- assert_select '#errorExplanation ul li', :text => "Due date must be greater than start date: ##{issue1.id}, ##{issue2.id}"
-
+ assert_select '#errorExplanation span',
+ :text => "Failed to save 2 issue(s) on 3 selected: ##{issue1.id}, ##{issue2.id}."
+ assert_select '#errorExplanation ul li',
+ :text => "Due date must be greater than start date: ##{issue1.id}, ##{issue2.id}"
assert_equal [issue1.id, issue2.id], assigns[:issues].map(&:id)
end