“Using current Rspec syntax, I ended up using the following: last_email = ActionMailer::Base.deliveries.last expect(last_email.to).to eq ['test@example.com'] expect(last_email.subject).to have_content 'Welcome'”

kent-where-the-light-iskent-where-the-light-is のブックマーク 2017/03/01 11:35

その他

このブックマークにはスターがありません。
最初のスターをつけてみよう!

Rails - How do you test ActionMailer sent a specific email in tests

    \ コメントが サクサク読める アプリです /

    • App Storeからダウンロード
    • Google Playで手に入れよう