fix journal observer test

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

View File

@ -23,6 +23,10 @@ class JournalObserverTest < ActiveSupport::TestCase
def setup
ActionMailer::Base.deliveries.clear
@journal = Journal.find 1
if (i = Issue.find(:first)).journals.empty?
i.init_journal(User.current, 'Creation') # Make sure the initial journal is created
i.save
end
end
# context: issue_updated notified_events