From 6bb37a394218f3774062efaf3792084242d1ab78 Mon Sep 17 00:00:00 2001 From: Pau Perez Date: Fri, 28 Aug 2020 11:26:02 +0200 Subject: [PATCH] Check taxon's attribute instead of object identity We don't care about the Ruby object instance but the actual DB record it represents. --- spec/features/admin/bulk_product_update_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/features/admin/bulk_product_update_spec.rb b/spec/features/admin/bulk_product_update_spec.rb index 553e2182aa..fc9c0e64d9 100644 --- a/spec/features/admin/bulk_product_update_spec.rb +++ b/spec/features/admin/bulk_product_update_spec.rb @@ -281,7 +281,7 @@ feature ' expect(p.variant_unit).to eq "weight" expect(p.variant_unit_scale).to eq 1000 # Kg expect(p.available_on).to eq 3.days.ago.beginning_of_day - expect(p.primary_taxon).to eq t1 + expect(p.primary_taxon.permalink).to eq t1.permalink expect(p.inherits_properties).to be false expect(p.sku).to eq "NEW SKU" end