From 3748d92bc846dae3f8c11bf1a7736d1b0ea64d69 Mon Sep 17 00:00:00 2001 From: Matt-Yorkley <9029026+Matt-Yorkley@users.noreply.github.com> Date: Sun, 24 Jan 2021 22:30:10 +0000 Subject: [PATCH] Fix modifying taxons in ShopsCaching spec This was triggering an error via the callback Spree::Product#remove_previous_primary_taxon_from_taxons --- spec/features/consumer/caching/shops_caching_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/features/consumer/caching/shops_caching_spec.rb b/spec/features/consumer/caching/shops_caching_spec.rb index 6f71868753..f9684c2378 100644 --- a/spec/features/consumer/caching/shops_caching_spec.rb +++ b/spec/features/consumer/caching/shops_caching_spec.rb @@ -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])