summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2020-11-26 14:46:05 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2020-11-26 14:46:05 +0000
commitfaaf13aa6a651bf7a7bfecf20336df6469f79df8 (patch)
treee304aec4c4a0107c03c43aa2c1d504b0e0e3f375
parent9bbfc61a948881b9dc68437f01d6694c44ff4568 (diff)
downloadredmine-faaf13aa6a651bf7a7bfecf20336df6469f79df8.tar.gz
redmine-faaf13aa6a651bf7a7bfecf20336df6469f79df8.zip
shorten long line of MailHandlerTest#test_email_with_long_subject_line
git-svn-id: http://svn.redmine.org/redmine/trunk@20496 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r--test/unit/mail_handler_test.rb8
1 files changed, 7 insertions, 1 deletions
diff --git a/test/unit/mail_handler_test.rb b/test/unit/mail_handler_test.rb
index 549edff5b..618423542 100644
--- a/test/unit/mail_handler_test.rb
+++ b/test/unit/mail_handler_test.rb
@@ -1227,7 +1227,13 @@ class MailHandlerTest < ActiveSupport::TestCase
def test_email_with_long_subject_line
issue = submit_email('ticket_with_long_subject.eml')
assert issue.is_a?(Issue)
- 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]
+ str =
+ '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...'
+ assert_equal issue.subject, str[0, 255]
end
def test_first_keyword_should_be_matched