Follow up: Changed attachment preference keys according to models/channel/email_parser.rb.
This commit is contained in:
parent
280f1402cd
commit
f395b997e9
1 changed files with 2 additions and 2 deletions
|
@ -216,14 +216,14 @@ class OtrsImportTest < ActiveSupport::TestCase
|
||||||
assert_equal( 5, article.attachments.count )
|
assert_equal( 5, article.attachments.count )
|
||||||
|
|
||||||
attachment = article.attachments.first
|
attachment = article.attachments.first
|
||||||
assert_equal( 'image/jpeg', attachment[:preferences]['content_type'] )
|
assert_equal( 'image/jpeg', attachment[:preferences]['Mime-Type'] )
|
||||||
assert_equal( 'Cursor_und_Banners_and_Alerts_und_Paket-Verwaltung_-_Admin_-_otrs336_und_otrs336.jpg', attachment.filename )
|
assert_equal( 'Cursor_und_Banners_and_Alerts_und_Paket-Verwaltung_-_Admin_-_otrs336_und_otrs336.jpg', attachment.filename )
|
||||||
|
|
||||||
article = Ticket::Article.find(156)
|
article = Ticket::Article.find(156)
|
||||||
assert_equal( 2, article.attachments.count )
|
assert_equal( 2, article.attachments.count )
|
||||||
|
|
||||||
attachment = article.attachments.second
|
attachment = article.attachments.second
|
||||||
assert_equal( 'application/pdf; name="=?UTF-8?B?5ZSQ6K+X5LiJ55m+6aaWLnBkZg==?="', attachment[:preferences]['content_type'] )
|
assert_equal( 'application/pdf; name="=?UTF-8?B?5ZSQ6K+X5LiJ55m+6aaWLnBkZg==?="', attachment[:preferences]['Mime-Type'] )
|
||||||
assert_equal( '唐诗三百首.pdf', attachment.filename )
|
assert_equal( '唐诗三百首.pdf', attachment.filename )
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue