|
|
|
@ -241,6 +241,7 @@ describe MailHandler, type: :model do |
|
|
|
|
assert_equal false, submit_email('ticket_without_from_header.eml') |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
context 'without default start_date', with_settings: { work_package_startdate_is_adddate: false } do |
|
|
|
|
it 'should add work package with invalid attributes' do |
|
|
|
|
issue = submit_email('ticket_with_invalid_attributes.eml', allow_override: 'type,category,priority') |
|
|
|
|
assert issue.is_a?(WorkPackage) |
|
|
|
@ -253,6 +254,7 @@ describe MailHandler, type: :model do |
|
|
|
|
assert_equal 'Normal', issue.priority.to_s |
|
|
|
|
assert issue.description.include?('Lorem ipsum dolor sit amet, consectetuer adipiscing elit.') |
|
|
|
|
end |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
it 'should add work package with localized attributes' do |
|
|
|
|
User.find_by_mail('jsmith@somenet.foo').update_attribute 'language', 'de' |
|
|
|
|