mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-29 21:17:17 +00:00
Fix intermittent failure via FK when deleted taxon is primary taxon on p2
This commit is contained in:
@@ -7,7 +7,7 @@ module Spree
|
||||
let!(:t2) { create(:taxon) }
|
||||
|
||||
describe "callbacks" do
|
||||
let!(:p2) { create(:simple_product, taxons: [t1]) }
|
||||
let!(:p2) { create(:simple_product, taxons: [t1], primary_taxon: t2) }
|
||||
|
||||
it "refreshes the products cache on save" do
|
||||
expect(OpenFoodNetwork::ProductsCache).to receive(:product_changed).with(p2)
|
||||
|
||||
Reference in New Issue
Block a user