Last Updated: February 25, 2016
·
3.402K
· teamon

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!

2 Responses
Add your response

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

over 1 year ago ·

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

over 1 year ago ·