エントリーの編集

エントリーの編集は全ユーザーに共通の機能です。
必ずガイドラインを一読の上ご利用ください。
How to test ActionMailer + ActiveJob with Rspec (Example)
記事へのコメント0件
- 注目コメント
- 新着コメント
このエントリーにコメントしてみましょう。
注目コメント算出アルゴリズムの一部にLINEヤフー株式会社の「建設的コメント順位付けモデルAPI」を使用しています

- バナー広告なし
- ミュート機能あり
- ダークモード搭載
関連記事
How to test ActionMailer + ActiveJob with Rspec (Example)
Suppose we have such email: class UserMailer < ApplicationMailer def welcome_email(user) @user = ... Suppose we have such email: class UserMailer < ApplicationMailer def welcome_email(user) @user = user mail(to: @user.email, subject: 'Welcome') end end That is delivered using default ActiveJob & ActionMailer's method: UserMailer.welcome_email(user).deliver_later. (you also need to set config.active_job.queue_adapter = :sidekiq [or some other adapter] in your application.rb to use deliver_later me