@@ -305,6 +305,26 class MailerTest < ActiveSupport::TestCase | |||
|
305 | 305 | end |
|
306 | 306 | end |
|
307 | 307 | |
|
308 | def test_wiki_content_added | |
|
309 | content = WikiContent.find(:first) | |
|
310 | valid_languages.each do |lang| | |
|
311 | Setting.default_language = lang.to_s | |
|
312 | assert_difference 'ActionMailer::Base.deliveries.size' do | |
|
313 | assert Mailer.deliver_wiki_content_added(content) | |
|
314 | end | |
|
315 | end | |
|
316 | end | |
|
317 | ||
|
318 | def test_wiki_content_updated | |
|
319 | content = WikiContent.find(:first) | |
|
320 | valid_languages.each do |lang| | |
|
321 | Setting.default_language = lang.to_s | |
|
322 | assert_difference 'ActionMailer::Base.deliveries.size' do | |
|
323 | assert Mailer.deliver_wiki_content_updated(content) | |
|
324 | end | |
|
325 | end | |
|
326 | end | |
|
327 | ||
|
308 | 328 | def test_account_information |
|
309 | 329 | user = User.find(2) |
|
310 | 330 | valid_languages.each do |lang| |
General Comments 0
You need to be logged in to leave comments.
Login now