]> source.dussan.org Git - redmine.git/commitdiff
fix source indent of test/unit/mail_handler_test.rb
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Thu, 3 Dec 2020 13:19:25 +0000 (13:19 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Thu, 3 Dec 2020 13:19:25 +0000 (13:19 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@20552 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/unit/mail_handler_test.rb

index 422d098dafa9c01f99edb7d1b12a591b8f6a757c..f24fbdb67caccd0ef125d1e886adecadecfd3b98 100644 (file)
@@ -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