summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2019-06-20 07:06:30 +0000
committerGo MAEDA <maeda@farend.jp>2019-06-20 07:06:30 +0000
commitdc8be287b0ff589a1942376f99258e42bbe47606 (patch)
treea746c66abd48aa24216b7a65c437766a279caefa /test
parent6d260195e1f4269340b30e5ef2b401c2f92aed09 (diff)
downloadredmine-dc8be287b0ff589a1942376f99258e42bbe47606.tar.gz
redmine-dc8be287b0ff589a1942376f99258e42bbe47606.zip
Merged r18269 from trunk to 4.0-stable in order to revert r18246 (#31582, #31365).
git-svn-id: http://svn.redmine.org/redmine/branches/4.0-stable@18270 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test')
-rw-r--r--test/fixtures/mail_handler/ticket_with_split_bytes_subject.eml9
-rw-r--r--test/unit/mail_handler_test.rb11
2 files changed, 0 insertions, 20 deletions
diff --git a/test/fixtures/mail_handler/ticket_with_split_bytes_subject.eml b/test/fixtures/mail_handler/ticket_with_split_bytes_subject.eml
deleted file mode 100644
index 52b8099e9..000000000
--- a/test/fixtures/mail_handler/ticket_with_split_bytes_subject.eml
+++ /dev/null
@@ -1,9 +0,0 @@
-Date: Mon, 13 May 2019 13:39:29 +0900
-Message-ID: <CALXUZfgwpW-hizEabSAjjkykQGV6-V6bwKu693Cr7cDH6DR7pQ@mail.gmail.com>
-Subject: =?utf-8?B?zrHOss6zzrTOtc62zrfOuM65zrrOu868zr3Ovs6/z4DPgc+Cz4PPhM+Fz4bP?=
- =?utf-8?B?h8+Iz4k=?=
-From: <foo@example.com>
-To: <baz@example.com>
-Content-Type: text/plain
-
-Split bytes subject.
diff --git a/test/unit/mail_handler_test.rb b/test/unit/mail_handler_test.rb
index 45dc63237..940dce5c4 100644
--- a/test/unit/mail_handler_test.rb
+++ b/test/unit/mail_handler_test.rb
@@ -1133,17 +1133,6 @@ class MailHandlerTest < ActiveSupport::TestCase
assert_equal issue.subject, 'New ticket on a given project with a very long subject line which exceeds 255 chars and should not be ignored but chopped off. And if the subject line is still not long enough, we just add more text. And more text. Wow, this is really annoying. Especially, if you have nothing to say...'[0,255]
end
- def test_email_with_split_bytes_subject
- issue = submit_email(
- 'ticket_with_split_bytes_subject.eml',
- :issue => {:project => 'ecookbook'},
- :no_permission_check => '1',
- :unknown_user => 'accept'
- )
- assert issue.is_a?(Issue)
- assert_equal 'αβγδεζηθικλμνξοπρςστυφχψω', issue.subject
- end
-
def test_first_keyword_should_be_matched
issue = submit_email('ticket_with_duplicate_keyword.eml', :allow_override => 'priority')
assert issue.is_a?(Issue)