summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2010-03-03 21:32:41 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2010-03-03 21:32:41 +0000
commitcdb86d5ef7d21090e9ee8f58597a2ccc190b6818 (patch)
tree4ce93accd3f881b8df3fe2eae74cd15d13867661 /test
parent3355ffe029fdecbe78a75f7f459bd93eae835a42 (diff)
downloadredmine-cdb86d5ef7d21090e9ee8f58597a2ccc190b6818.tar.gz
redmine-cdb86d5ef7d21090e9ee8f58597a2ccc190b6818.zip
Fixed: no email notification on new project/version file added (#4966).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3532 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test')
-rw-r--r--test/unit/mailer_test.rb14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/unit/mailer_test.rb b/test/unit/mailer_test.rb
index 8850f8235..68b074a93 100644
--- a/test/unit/mailer_test.rb
+++ b/test/unit/mailer_test.rb
@@ -273,6 +273,20 @@ class MailerTest < ActiveSupport::TestCase
end
end
+ def test_version_file_added
+ attachements = [ Attachment.find_by_container_type('Version') ]
+ assert Mailer.deliver_attachments_added(attachements)
+ assert_not_nil last_email.bcc
+ assert last_email.bcc.any?
+ end
+
+ def test_project_file_added
+ attachements = [ Attachment.find_by_container_type('Project') ]
+ assert Mailer.deliver_attachments_added(attachements)
+ assert_not_nil last_email.bcc
+ assert last_email.bcc.any?
+ end
+
def test_news_added
news = News.find(:first)
valid_languages.each do |lang|