《Crafting Rails 4 Applications》的筆記-第28頁

c3tc3tc3t發表於2017-07-05

進行郵件測試,你需要在dummy目錄下的虛擬程式新增一個配置

 

In your config/enviroments/test.rb, by default you should have the line config.action_mailer.delivery_method = :test

 

 

from

https://stackoverflow.com/questions/3995994/rspec-sends-emails-not-storing-in-actionmailerbase-deliveries-dont-know-wh

相關文章