mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-11 18:26:50 +00:00
Update spec/mailers/producer_mailer_spec.rb
This commit is contained in:
committed by
Rachel Arnould
parent
80fc0a5790
commit
9e9cc28062
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user