mirror of
https://github.com/redmine/redmine.git
synced 2026-02-01 12:20:12 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user