Add tests for wiki edit notifications (#7024).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4479 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
b898200803
commit
8524d505c5
|
@ -305,6 +305,26 @@ class MailerTest < ActiveSupport::TestCase
|
||||||
end
|
end
|
||||||
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
|
def test_account_information
|
||||||
user = User.find(2)
|
user = User.find(2)
|
||||||
valid_languages.each do |lang|
|
valid_languages.each do |lang|
|
||||||
|
|
Loading…
Reference in New Issue