From 0ba4134ecc4b55b9e7901ad7ce373c481c6bf3e8 Mon Sep 17 00:00:00 2001 From: Eric Davis Date: Fri, 13 May 2011 11:33:51 -0700 Subject: [PATCH] [#123] Fix Journal notification test --- test/unit/journal_test.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test/unit/journal_test.rb b/test/unit/journal_test.rb index 579191a0..02845c18 100644 --- a/test/unit/journal_test.rb +++ b/test/unit/journal_test.rb @@ -96,10 +96,12 @@ class JournalTest < ActiveSupport::TestCase ActionMailer::Base.deliveries.clear issue = Issue.find(:first) user = User.find(:first) - journal = issue.init_journal(user, issue) + journal = issue.init_journal(user, "A note") JournalObserver.instance.send_notification = false - assert journal.save + assert_difference("Journal.count") do + assert issue.save + end assert_equal 0, ActionMailer::Base.deliveries.size end end