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
: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
: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
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