HashNuke / mailgun

mailgun library for ruby

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Test Mode appears to not be working

mitchmeyer1 opened this issue · comments

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: "mitchmeyer1@gmail.com",
      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