Skip to content

Commit

Permalink
Merge pull request #22268 from jrafanie/fix_required_response_arg_net…
Browse files Browse the repository at this point in the history
…_smtp_0_2_2

Provide the now required response object to the smtp exception
  • Loading branch information
agrare authored Dec 5, 2022
2 parents ce4403e + fdfbba0 commit bd821db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/mailers/generic_mailer_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
# raises error when delivered
msg = @args.merge(:to => 'me@bedrock.gov, you@bedrock.gov')
notification = GenericMailer.generic_notification(msg)
allow(notification).to receive(:deliver_now).and_raise(Net::SMTPFatalError)
allow(notification).to receive(:deliver_now).and_raise(Net::SMTPFatalError.new("fake_response"))

# send error msg first...
expect(GenericMailer)
Expand Down

0 comments on commit bd821db

Please sign in to comment.