LoginSignup
2
0

More than 5 years have passed since last update.

Devise 4.1.0 から本人確認メールの送信タイミングが変わった

Last updated at Posted at 2018-04-19

ユーザー登録して、本人確認メール(confirmation instructions e-mail)が送信されるテストを書いていて。

これまではたしかに ActionMailer::Base.deliveries にメールが入っていたんだけど、Devise のバージョンを上げてから、テストがこけるようになったので調べた。

原因

原因は下記の Devise の CHANGELOG に書いているとおり。

要は、本人確認メールを送信するタイミングを変更したとのこと。

これによって、テストの設定を use_transactional_fixtures = true にしていたりとか、DatabaseCleaner を transaction strategy で利用していたりすると影響が出る。

対応

2
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
0