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!
Written by Tymon Tobolski
Related protips
2 Responses
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
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Ruby
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#