|
|
|
@ -59,7 +59,7 @@ class WikiContentTest < ActiveSupport::TestCase |
|
|
|
|
page = WikiPage.new(:wiki => @wiki, :title => "A new page") |
|
|
|
|
page.content = WikiContent.new(:text => "Content text", :author => User.find(1), :comments => "My comment") |
|
|
|
|
assert page.save |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
assert_equal 2, ActionMailer::Base.deliveries.size |
|
|
|
|
end |
|
|
|
|
|
|
|
|
@ -79,7 +79,7 @@ class WikiContentTest < ActiveSupport::TestCase |
|
|
|
|
content = @page.content |
|
|
|
|
content.text = "My new content" |
|
|
|
|
assert content.save |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
assert_equal 2, ActionMailer::Base.deliveries.size |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|