Skip to content

Commit bd821db

Browse files
authored
Merge pull request #22268 from jrafanie/fix_required_response_arg_net_smtp_0_2_2
Provide the now required response object to the smtp exception
2 parents ce4403e + fdfbba0 commit bd821db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec/mailers/generic_mailer_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
# raises error when delivered
4949
msg = @args.merge(:to => '[email protected], [email protected]')
5050
notification = GenericMailer.generic_notification(msg)
51-
allow(notification).to receive(:deliver_now).and_raise(Net::SMTPFatalError)
51+
allow(notification).to receive(:deliver_now).and_raise(Net::SMTPFatalError.new("fake_response"))
5252

5353
# send error msg first...
5454
expect(GenericMailer)

0 commit comments

Comments
 (0)