From 25f33b9443d16da33f177ce56e37a0cab4485e2c Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Mon, 5 Oct 2020 15:47:34 +0000 Subject: [PATCH] shorten long line of TimelogControllerTest git-svn-id: http://svn.redmine.org/redmine/trunk@20124 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- test/functional/timelog_controller_test.rb | 18 ++++++++++++++---- 1 file 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 -- 2.39.5