Fix modifying taxons in ShopsCaching spec

This was triggering an error via the callback Spree::Product#remove_previous_primary_taxon_from_taxons
This commit is contained in:
Matt-Yorkley
2021-01-24 22:30:10 +00:00
parent aea8d1dc99
commit 3748d92bc8

View File

@@ -73,7 +73,7 @@ feature "Shops caching", js: true, caching: true do
expect(page).to have_content taxon.name
expect(page).to have_content property.presentation
product.update_attribute(:taxons, [taxon2])
product.taxons << taxon2
product.update_attribute(:primary_taxon, taxon2)
product.update_attribute(:properties, [property2])