summaryrefslogtreecommitdiffstats
path: root/test/unit/wiki_content_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/unit/wiki_content_test.rb')
-rw-r--r--test/unit/wiki_content_test.rb12
1 files changed, 8 insertions, 4 deletions
diff --git a/test/unit/wiki_content_test.rb b/test/unit/wiki_content_test.rb
index d3cb74427..1b6dcf095 100644
--- a/test/unit/wiki_content_test.rb
+++ b/test/unit/wiki_content_test.rb
@@ -53,8 +53,10 @@ class WikiContentTest < ActiveSupport::TestCase
assert page.save
end
- assert_equal 1, ActionMailer::Base.deliveries.size
- assert_include 'wiki page has been added', mail_body(ActionMailer::Base.deliveries.last)
+ assert_equal 2, ActionMailer::Base.deliveries.size
+ ActionMailer::Base.deliveries.each do |mail|
+ assert_include 'wiki page has been added', mail_body(mail)
+ end
end
def test_update_should_be_versioned
@@ -100,8 +102,10 @@ class WikiContentTest < ActiveSupport::TestCase
assert content.save
end
- assert_equal 1, ActionMailer::Base.deliveries.size
- assert_include 'wiki page has been updated', mail_body(ActionMailer::Base.deliveries.last)
+ assert_equal 2, ActionMailer::Base.deliveries.size
+ ActionMailer::Base.deliveries.each do |mail|
+ assert_include 'wiki page has been updated', mail_body(mail)
+ end
end
def test_fetch_history