From 3580c017984ac72f64ff3c692885053453be06b8 Mon Sep 17 00:00:00 2001 From: Nathan Broadbent Date: Tue, 19 Mar 2013 07:37:17 +1300 Subject: [PATCH] Fixed mailer specs --- spec/mailers/mailer_spec.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/spec/mailers/mailer_spec.rb b/spec/mailers/mailer_spec.rb index 664bc8a..69dec00 100644 --- a/spec/mailers/mailer_spec.rb +++ b/spec/mailers/mailer_spec.rb @@ -6,10 +6,14 @@ describe Mailer do include EmailSpec::Matchers let(:notice) { Fabricate(:notice, :message => "class < ActionController::Base") } + let!(:user) { Fabricate(:admin) } before do notice.backtrace.lines.last.update_attributes(:file => "[PROJECT_ROOT]/path/to/file.js") - notice.app.update_attributes :asset_host => "http://example.com" + notice.app.update_attributes( + :asset_host => "http://example.com", + :notify_all_users => true + ) notice.problem.update_attributes :notices_count => 3 @email = Mailer.err_notification(notice).deliver -- libgit2 0.21.2