summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2020-10-05 15:47:34 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2020-10-05 15:47:34 +0000
commit25f33b9443d16da33f177ce56e37a0cab4485e2c (patch)
treeb6e0b26ab2abdb0832fc2b92139ae1012855eb1a
parentc988d6ca48870237232b7b218ac32ffc3ed9d2fe (diff)
downloadredmine-25f33b9443d16da33f177ce56e37a0cab4485e2c.tar.gz
redmine-25f33b9443d16da33f177ce56e37a0cab4485e2c.zip
shorten long line of TimelogControllerTest
git-svn-id: http://svn.redmine.org/redmine/trunk@20124 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r--test/functional/timelog_controller_test.rb18
1 files changed, 14 insertions, 4 deletions
diff --git a/test/functional/timelog_controller_test.rb b/test/functional/timelog_controller_test.rb
index 77b2cd66e..50c34e6a9 100644
--- a/test/functional/timelog_controller_test.rb
+++ b/test/functional/timelog_controller_test.rb
@@ -839,8 +839,13 @@ class TimelogControllerTest < Redmine::ControllerTest
def test_bulk_update_custom_field
@request.session[:user_id] = 2
- post :bulk_update, :params => {:ids => [1, 2], :time_entry => { :custom_field_values => {'10' => '0'} }}
-
+ post(
+ :bulk_update,
+ :params => {
+ :ids => [1, 2],
+ :time_entry => {:custom_field_values => {'10' => '0'}}
+ }
+ )
assert_response 302
assert_equal ["0", "0"], TimeEntry.where(:id => [1, 2]).collect {|i| i.custom_value_for(10).value}
end
@@ -848,8 +853,13 @@ class TimelogControllerTest < Redmine::ControllerTest
def test_bulk_update_clear_custom_field
field = TimeEntryCustomField.generate!(:field_format => 'string')
@request.session[:user_id] = 2
- post :bulk_update, :params => {:ids => [1, 2], :time_entry => { :custom_field_values => {field.id.to_s => '__none__'} }}
-
+ post(
+ :bulk_update,
+ :params => {
+ :ids => [1, 2],
+ :time_entry => {:custom_field_values => {field.id.to_s => '__none__'}}
+ }
+ )
assert_response 302
assert_equal ["", ""], TimeEntry.where(:id => [1, 2]).collect {|i| i.custom_value_for(field).value}
end