Commit 3580c017984ac72f64ff3c692885053453be06b8
1 parent
c0450ad4
Exists in
master
and in
1 other branch
Fixed mailer specs
Showing
1 changed file
with
5 additions
and
1 deletions
Show diff stats
spec/mailers/mailer_spec.rb
... | ... | @@ -6,10 +6,14 @@ describe Mailer do |
6 | 6 | include EmailSpec::Matchers |
7 | 7 | |
8 | 8 | let(:notice) { Fabricate(:notice, :message => "class < ActionController::Base") } |
9 | + let!(:user) { Fabricate(:admin) } | |
9 | 10 | |
10 | 11 | before do |
11 | 12 | notice.backtrace.lines.last.update_attributes(:file => "[PROJECT_ROOT]/path/to/file.js") |
12 | - notice.app.update_attributes :asset_host => "http://example.com" | |
13 | + notice.app.update_attributes( | |
14 | + :asset_host => "http://example.com", | |
15 | + :notify_all_users => true | |
16 | + ) | |
13 | 17 | notice.problem.update_attributes :notices_count => 3 |
14 | 18 | |
15 | 19 | @email = Mailer.err_notification(notice).deliver | ... | ... |