mirror of
https://github.com/meineerde/redmine.git
synced 2025-12-19 15:01:14 +00:00
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
This commit is contained in:
parent
9bbfc61a94
commit
faaf13aa6a
@ -1227,7 +1227,13 @@ class MailHandlerTest < ActiveSupport::TestCase
|
|||||||
def test_email_with_long_subject_line
|
def test_email_with_long_subject_line
|
||||||
issue = submit_email('ticket_with_long_subject.eml')
|
issue = submit_email('ticket_with_long_subject.eml')
|
||||||
assert issue.is_a?(Issue)
|
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
|
end
|
||||||
|
|
||||||
def test_first_keyword_should_be_matched
|
def test_first_keyword_should_be_matched
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user