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

Test Mode appears to not be working #62

Open
mitchmeyer1 opened this issue Nov 10, 2017 · 0 comments
Open

Test Mode appears to not be working #62

mitchmeyer1 opened this issue Nov 10, 2017 · 0 comments

Comments

@mitchmeyer1
Copy link

mitchmeyer1 commented Nov 10, 2017

v 0.11
Converting to test mode for my test suite. This code sends a message not in test mode

@mailgun = Mailgun(api_key: ENV['MAILGUN_API_KEY'], domain: ENV['MAILGUN_DOMAIN'], test_mode: true )
message_params = {
      from: ENV['MAILGUN_USER_NAME'],
      to: "[email protected]",
      subject: "You've been invited to join the BlueStreak Platform!",
      html: html_output.to_str
    }.merge(opts)
   @mailgun.messages.send_email(message_params)

And (part of) the mailgun logs for my request:

...
flags": {
        "is-routed": false,
        "is-authenticated": true,
        "is-system-test": false,
        "is-test-mode": false
    },
...

Note the "is-test-mode": false

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