From 66bdcd08d96fa803fa08c427b1269df42b0c9182 Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Sun, 19 Jul 2020 14:06:09 +0000 Subject: [PATCH] shorten long line of IssuesControllerTest git-svn-id: http://svn.redmine.org/redmine/trunk@19918 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- test/functional/issues_controller_test.rb | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/test/functional/issues_controller_test.rb b/test/functional/issues_controller_test.rb index 2713ab2aa..6b5c1c0d8 100644 --- a/test/functional/issues_controller_test.rb +++ b/test/functional/issues_controller_test.rb @@ -6595,11 +6595,18 @@ class IssuesControllerTest < Redmine::ControllerTest def test_bulk_edit_should_warn_about_custom_field_values_about_to_be_cleared CustomField.destroy_all - cleared = IssueCustomField.generate!(:name => 'Cleared', :tracker_ids => [2], :is_for_all => true) - CustomValue.create!(:customized => Issue.find(2), :custom_field => cleared, :value => 'foo') - - not_cleared = IssueCustomField.generate!(:name => 'Not cleared', :tracker_ids => [2, 3], :is_for_all => true) - CustomValue.create!(:customized => Issue.find(2), :custom_field => not_cleared, :value => 'bar') + cleared = IssueCustomField.generate!(:name => 'Cleared', + :tracker_ids => [2], + :is_for_all => true) + CustomValue.create!(:customized => Issue.find(2), + :custom_field => cleared, + :value => 'foo') + not_cleared = IssueCustomField.generate!(:name => 'Not cleared', + :tracker_ids => [2, 3], + :is_for_all => true) + CustomValue.create!(:customized => Issue.find(2), + :custom_field => not_cleared, + :value => 'bar') @request.session[:user_id] = 2 get(