summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2019-08-25 00:09:10 +0000
committerGo MAEDA <maeda@farend.jp>2019-08-25 00:09:10 +0000
commit959b55779f0188b5fd59b7990200df10ffc6d4d4 (patch)
tree00a735d2119a10758ffc4ad5edf60715a76540d6 /test
parent8913da8aab8d2760a5ce8920ddb82cccf3488078 (diff)
downloadredmine-959b55779f0188b5fd59b7990200df10ffc6d4d4.tar.gz
redmine-959b55779f0188b5fd59b7990200df10ffc6d4d4.zip
Fix hard-coded string "no subject" in app/models/mail_handler.rb (#5820).
Patch by Mizuki ISHIKAWA. git-svn-id: http://svn.redmine.org/redmine/trunk@18388 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test')
-rw-r--r--test/unit/mail_handler_test.rb14
1 files changed, 8 insertions, 6 deletions
diff --git a/test/unit/mail_handler_test.rb b/test/unit/mail_handler_test.rb
index 469722a37..758f5f6e8 100644
--- a/test/unit/mail_handler_test.rb
+++ b/test/unit/mail_handler_test.rb
@@ -738,12 +738,14 @@ class MailHandlerTest < ActiveSupport::TestCase
end
def test_add_issue_with_no_subject_header
- issue = submit_email(
- 'no_subject_header.eml',
- :issue => {:project => 'ecookbook'}
- )
- assert_kind_of Issue, issue
- assert_equal '(no subject)', issue.subject
+ with_settings :default_language => 'en' do
+ issue = submit_email(
+ 'no_subject_header.eml',
+ :issue => {:project => 'ecookbook'}
+ )
+ assert_kind_of Issue, issue
+ assert_equal "(no subject)", issue.subject
+ end
end
def test_add_issue_with_mixed_japanese_subject