Skip to content

Test mode? #24

@michaelrkn

Description

@michaelrkn

Hey there! Really loving the new Mailgun gem - thanks for the good work.

One thing that I'm running into in my testing is that it's annoying to stub Mailgun out every time I hit an action in my app that sends an email. It would be awesome to be able to do something like

Mailgun.enable_test_mode!

in my spec_helper.rb that would then cause all the client to not actually make requests to Mailgun.

I was thinking about working on this and opening a pull request, but wanted to see your folks' thoughts on it in case you have other suggestions or a better approach before I go down that path.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions