From 0fe4edfbf5e1ed2ca9d6f795252333918249e27b Mon Sep 17 00:00:00 2001 From: luisramos0 Date: Wed, 30 Oct 2019 11:06:18 +0000 Subject: [PATCH] Make product_tag_rules_filterer_spec a bit more flexible and not test for the order of the elements --- spec/services/product_tag_rules_filterer_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/services/product_tag_rules_filterer_spec.rb b/spec/services/product_tag_rules_filterer_spec.rb index 026e0ec03b..458ca55820 100644 --- a/spec/services/product_tag_rules_filterer_spec.rb +++ b/spec/services/product_tag_rules_filterer_spec.rb @@ -79,7 +79,7 @@ describe ProductTagRulesFilterer do variant_hidden_for_another_customer.update_attribute(:tag_list, non_applicable_rule.preferred_variant_tags) overrides_to_hide = filterer.__send__(:overrides_to_hide) - expect(overrides_to_hide).to eq [variant_hidden_by_default.id, variant_hidden_by_rule.id] + expect(overrides_to_hide).to include variant_hidden_by_default.id, variant_hidden_by_rule.id end end