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
This commit is contained in:
Toshi MARUYAMA
2020-12-03 13:19:25 +00:00
parent 061a68e466
commit 76cab94d10

View 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. Im 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. Im 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