fix journal test

This commit is contained in:
Tim Felgentreff 2010-11-05 14:14:00 +01:00
parent 445391f863
commit 66b7378306
1 changed files with 4 additions and 0 deletions

View File

@ -40,6 +40,10 @@ class JournalTest < ActiveSupport::TestCase
def test_create_should_send_email_notification def test_create_should_send_email_notification
ActionMailer::Base.deliveries.clear ActionMailer::Base.deliveries.clear
issue = Issue.find(:first) issue = Issue.find(:first)
if issue.journals.empty?
issue.init_journal(User.current, "This journal represents the creational journal version 1")
issue.save
end
user = User.find(:first) user = User.find(:first)
assert_equal 0, ActionMailer::Base.deliveries.size assert_equal 0, ActionMailer::Base.deliveries.size