Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optionally use 'mandrill_mailer/offline' #139

Open
coorasse opened this issue Aug 29, 2019 · 0 comments
Open

Optionally use 'mandrill_mailer/offline' #139

coorasse opened this issue Aug 29, 2019 · 0 comments

Comments

@coorasse
Copy link

coorasse commented Aug 29, 2019

The issue I am currently is facing is the need of running all my tests in offline mode, except for a couple of them, where I really want to test against Mandrill APIs.

I cannot remove require 'mandrill_mailer/offline' otherwise all my tests would run against the APIs, and I cannot use it only for a specific test, or at least I didn't find it in the docs.

Is this supported? In case of a negative answer, would you be interested in a PR for that feature?

Some details:
require 'mandrill_mailer/offline monkey patches the MandrillMailer::TemplateMailer and the MandrillMailer::MessageMailer modules, overriding the deliver_now method. I cannot remove the monkey patch once is applied.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant