From f395b997e927da24fb6dfc8fce1bad8d6a32b736 Mon Sep 17 00:00:00 2001 From: Thorsten Eckel Date: Wed, 22 Jul 2015 10:33:29 +0200 Subject: [PATCH] Follow up: Changed attachment preference keys according to models/channel/email_parser.rb. --- test/integration/otrs_import_test.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/integration/otrs_import_test.rb b/test/integration/otrs_import_test.rb index 2df97fc2b..ace09a5b8 100644 --- a/test/integration/otrs_import_test.rb +++ b/test/integration/otrs_import_test.rb @@ -216,14 +216,14 @@ class OtrsImportTest < ActiveSupport::TestCase assert_equal( 5, article.attachments.count ) 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 ) article = Ticket::Article.find(156) assert_equal( 2, article.attachments.count ) 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 ) end