[#123] Fix Journal notification test

This commit is contained in:
Eric Davis 2011-05-13 11:33:51 -07:00
parent aa2b0a8709
commit 0ba4134ecc
1 changed files with 4 additions and 2 deletions

View File

@ -96,10 +96,12 @@ class JournalTest < ActiveSupport::TestCase
ActionMailer::Base.deliveries.clear ActionMailer::Base.deliveries.clear
issue = Issue.find(:first) issue = Issue.find(:first)
user = User.find(:first) user = User.find(:first)
journal = issue.init_journal(user, issue) journal = issue.init_journal(user, "A note")
JournalObserver.instance.send_notification = false JournalObserver.instance.send_notification = false
assert journal.save assert_difference("Journal.count") do
assert issue.save
end
assert_equal 0, ActionMailer::Base.deliveries.size assert_equal 0, ActionMailer::Base.deliveries.size
end end
end end