Commit 0ba4134e authored by Eric Davis's avatar Eric Davis

[#123] Fix Journal notification test

parent aa2b0a87
......@@ -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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment