diff options
Diffstat (limited to 'test/unit/mail_handler_test.rb')
-rw-r--r-- | test/unit/mail_handler_test.rb | 14 |
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 |