mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
Update test for multi-part email
Now that it's a multi-part email, we have to select the html part for the test. Another option is to simply check mail.to_s, but this also includes mail headers so doesn't specifically test the body.
This commit is contained in:
@@ -81,7 +81,7 @@ RSpec.describe Spree::UserMailer do
|
||||
|
||||
context 'body includes' do
|
||||
it 'password reset url' do
|
||||
expect(mail.body.raw_source).to include spree.edit_spree_user_password_url
|
||||
expect(mail.html_part.body).to include spree.edit_spree_user_password_url
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user