Update spec/mailers/producer_mailer_spec.rb

This commit is contained in:
David Cook
2025-06-25 12:55:30 +10:00
committed by Rachel Arnould
parent 80fc0a5790
commit 9e9cc28062

View File

@@ -238,11 +238,10 @@ RSpec.describe ProducerMailer do
expect(table).not_to have_selector("th", text: "Phone")
expect(table).not_to have_selector("th", text: "Email")
row = parsed_email.find("table.order-summary.customer-order tbody tr")
expect(row).not_to have_selector("td", text: order.billing_address.phone)
expect(row).not_to have_selector("td", text: order.customer.email)
expect(row).not_to have_selector("td", text: order.billing_address.lastname)
expect(row).not_to have_selector("td", text: order.billing_address.firstname)
expect(parsed_email).not_to have_content order.billing_address.phone
expect(parsed_email).not_to have_content order.customer.email
expect(parsed_email).not_to have_content order.billing_address.lastname
expect(parsed_email).not_to have_content order.billing_address.firstname
end
end
end