summaryrefslogtreecommitdiffstats
path: root/test/unit/mailer_test.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2010-12-07 22:07:55 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2010-12-07 22:07:55 +0000
commit8524d505c5c092ead4f6be1fedfc38311b3c7b91 (patch)
treed3cb2c4a55d1a5cef238168720f94de8f4b5fefb /test/unit/mailer_test.rb
parentb8982008036624581c1eaa8f92adaa383fafd04e (diff)
downloadredmine-8524d505c5c092ead4f6be1fedfc38311b3c7b91.tar.gz
redmine-8524d505c5c092ead4f6be1fedfc38311b3c7b91.zip
Add tests for wiki edit notifications (#7024).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4479 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit/mailer_test.rb')
-rw-r--r--test/unit/mailer_test.rb20
1 files changed, 20 insertions, 0 deletions
diff --git a/test/unit/mailer_test.rb b/test/unit/mailer_test.rb
index e01cc1039..0d0808563 100644
--- a/test/unit/mailer_test.rb
+++ b/test/unit/mailer_test.rb
@@ -305,6 +305,26 @@ class MailerTest < ActiveSupport::TestCase
end
end
+ def test_wiki_content_added
+ content = WikiContent.find(:first)
+ valid_languages.each do |lang|
+ Setting.default_language = lang.to_s
+ assert_difference 'ActionMailer::Base.deliveries.size' do
+ assert Mailer.deliver_wiki_content_added(content)
+ end
+ end
+ end
+
+ def test_wiki_content_updated
+ content = WikiContent.find(:first)
+ valid_languages.each do |lang|
+ Setting.default_language = lang.to_s
+ assert_difference 'ActionMailer::Base.deliveries.size' do
+ assert Mailer.deliver_wiki_content_updated(content)
+ end
+ end
+ end
+
def test_account_information
user = User.find(2)
valid_languages.each do |lang|