]> source.dussan.org Git - redmine.git/commitdiff
add test of issue id in sending mail when issue is created by mail (#17078)
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Mon, 30 Jun 2014 08:03:27 +0000 (08:03 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Mon, 30 Jun 2014 08:03:27 +0000 (08:03 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@13195 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/unit/mail_handler_test.rb

index 96d16d845a4a6cc275c0f578d0fdc23fdb934364..317c3bcc29d155b93f212c21b4df13c54f605333 100644 (file)
@@ -67,6 +67,7 @@ class MailHandlerTest < ActiveSupport::TestCase
     # Email notification should be sent
     mail = ActionMailer::Base.deliveries.last
     assert_not_nil mail
+    assert mail.subject.include?("##{issue.id}")
     assert mail.subject.include?('New ticket on a given project')
   end