From 76cab94d1013737e87fb626a03c8a414813d3daa Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Thu, 3 Dec 2020 13:19:25 +0000 Subject: [PATCH] fix source indent of test/unit/mail_handler_test.rb git-svn-id: http://svn.redmine.org/redmine/trunk@20552 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- test/unit/mail_handler_test.rb | 47 ++++++++++++++++++++-------------- 1 file changed, 28 insertions(+), 19 deletions(-) diff --git a/test/unit/mail_handler_test.rb b/test/unit/mail_handler_test.rb index 422d098da..f24fbdb67 100644 --- a/test/unit/mail_handler_test.rb +++ b/test/unit/mail_handler_test.rb @@ -43,12 +43,14 @@ class MailHandlerTest < ActiveSupport::TestCase end def test_add_issue_with_specific_overrides - issue = submit_email('ticket_on_given_project.eml', - :allow_override => - ['status', 'start_date', 'due_date', 'assigned_to', - 'fixed_version', 'estimated_hours', 'done_ratio', - 'parent_issue'] - ) + issue = + submit_email( + 'ticket_on_given_project.eml', + :allow_override => + ['status', 'start_date', 'due_date', 'assigned_to', + 'fixed_version', 'estimated_hours', 'done_ratio', + 'parent_issue'] + ) assert issue.is_a?(Issue) assert !issue.new_record? issue.reload @@ -250,10 +252,12 @@ class MailHandlerTest < ActiveSupport::TestCase :name => 'OS', :multiple => true, :possible_values => ['Linux', 'Windows', 'Mac OS X']) - issue = submit_email('ticket_with_custom_fields.eml', - :issue => {:project => 'onlinestore'}, - :allow_override => ['database', 'Searchable_field', 'OS'] - ) + issue = + submit_email( + 'ticket_with_custom_fields.eml', + :issue => {:project => 'onlinestore'}, + :allow_override => ['database', 'Searchable_field', 'OS'] + ) assert issue.is_a?(Issue) assert !issue.new_record? issue.reload @@ -269,12 +273,14 @@ class MailHandlerTest < ActiveSupport::TestCase :field_format => 'version', :is_for_all => true, :tracker_ids => [1, 2, 3]) - issue = submit_email('ticket_with_custom_fields.eml', - :issue => {:project => 'ecookbook'}, - :allow_override => ['affected version'] - ) do |email| - email << "Affected version: 1.0\n" - end + issue = + submit_email( + 'ticket_with_custom_fields.eml', + :issue => {:project => 'ecookbook'}, + :allow_override => ['affected version'] + ) do |email| + email << "Affected version: 1.0\n" + end assert issue.is_a?(Issue) assert !issue.new_record? issue.reload @@ -1120,9 +1126,12 @@ class MailHandlerTest < ActiveSupport::TestCase assert issue.is_a?(Issue) issue.reload assert_equal 'Test email', issue.subject - assert_equal "Simple, unadorned test email generated by Outlook 2010. It is in HTML format, but" + - " no special formatting has been chosen. I’m going to save this as a draft and then manually" + - " drop it into the Inbox for scraping by Redmine 3.0.2.", issue.description + assert_equal( + "Simple, unadorned test email generated by Outlook 2010. It is in HTML format, but" \ + " no special formatting has been chosen. I’m going to save this as a draft and then manually" \ + " drop it into the Inbox for scraping by Redmine 3.0.2.", + issue.description + ) end test "truncate emails with no setting should add the entire email into the issue" do