jjrkow
Last Updated: February 25, 2016
·
2.55K
· teamon
9fae8c5d475fe322a3a74e53d56ee2a0

Inline sidekiq mailer + letter_opener

You want to send email in background using sidekiq but in development you would like to use letter_opener?

Put this in config/development.rb

require 'sidekiq/testing/inline'

It will run sidekiq inside rails process, you don't need to run separate sidekiq process.

Btw, code reloading for free!

Say Thanks
Respond

2 Responses
Add your response

1140
My password is password1

What do you use when testing your mailers? Are you running SideKiq in test environment?

over 1 year ago ·
6397
C0f3968c855edfa81ec56b8aa3db3a67

You can always add require 'sidekiq/testing/inline' in your spec_helper.

over 1 year ago ·