fix journal observer test
This commit is contained in:
parent
65097e7d11
commit
445391f863
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue