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:
David Cook
2025-02-18 16:15:04 +11:00
parent c9f5dd2d0b
commit 664119ddcf

View File

@@ -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