Skip to content
Snippets Groups Projects
Commit e0f3e44b authored by Douwe Maan's avatar Douwe Maan
Browse files

Merge branch '18447-investigate-smtp-error' into 'master'

Fix failing `EmailOnPush` spec.

Closes #18447 

- This should fix CI on master

/cc @smcgivern @ayufan @stanhu @pacoguzman 

See merge request !4582
parents cea3cf17 99d5a91d
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -2,7 +2,7 @@ require 'spec_helper'
 
describe DisableEmailInterceptor, lib: true do
before do
ActionMailer::Base.register_interceptor(DisableEmailInterceptor)
Mail.register_interceptor(DisableEmailInterceptor)
end
 
it 'should not send emails' do
Loading
Loading
@@ -14,7 +14,7 @@ describe DisableEmailInterceptor, lib: true do
# Removing interceptor from the list because unregister_interceptor is
# implemented in later version of mail gem
# See: https://github.com/mikel/mail/pull/705
Mail.class_variable_set(:@@delivery_interceptors, [])
Mail.unregister_interceptor(DisableEmailInterceptor)
end
 
def deliver_mail
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment