From 959b55779f0188b5fd59b7990200df10ffc6d4d4 Mon Sep 17 00:00:00 2001 From: Go MAEDA Date: Sun, 25 Aug 2019 00:09:10 +0000 Subject: 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 --- test/unit/mail_handler_test.rb | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'test/unit/mail_handler_test.rb') 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 -- cgit v1.2.3