サクサク読めて、アプリ限定の機能も多数!
“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-is のブックマーク 2017/03/01 11:35
Rails - How do you test ActionMailer sent a specific email in tests“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'”2017/03/01 11:35
このブックマークにはスターがありません。 最初のスターをつけてみよう!
stackoverflow.com2017/03/01
1 人がブックマーク・1 件のコメント
\ コメントが サクサク読める アプリです /
“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'”
このブックマークにはスターがありません。
最初のスターをつけてみよう!
Rails - How do you test ActionMailer sent a specific email in tests
1 人がブックマーク・1 件のコメント
\ コメントが サクサク読める アプリです /