mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Make product_tag_rules_filterer_spec a bit more flexible and not test for the order of the elements
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user