2020-09-30から1日間の記事一覧
RSpecのSystemSpec内でメール送信のテストを行う際のメモ。 mailers/article_mailer.rb class ArticleMailer < ApplicationMailer def report mail(to: 'admin@example.com', subject: 'HOGE') end end 送信メールを上のように定義。 テスト環境でもArticleM…
RSpecのSystemSpec内でメール送信のテストを行う際のメモ。 mailers/article_mailer.rb class ArticleMailer < ApplicationMailer def report mail(to: 'admin@example.com', subject: 'HOGE') end end 送信メールを上のように定義。 テスト環境でもArticleM…