Merge pull request #12747 from mkllnk/flaky-dfc-spec

Stabilise flaky spec with unique taxons
This commit is contained in:
David Cook
2024-08-07 15:02:57 +10:00
committed by GitHub

View File

@@ -176,12 +176,12 @@ RSpec.describe SuppliedProductBuilder do
spree_product_id: variant.product.id
)
end
let(:product_type) { DfcLoader.connector.PRODUCT_TYPES.DRINK.SOFT_DRINK }
let(:product_type) { DfcLoader.connector.PRODUCT_TYPES.DRINK.SOFT_DRINK.FRUIT_JUICE }
let!(:new_taxon) {
create(
:taxon,
name: "Soft Drink",
dfc_id: "https://github.com/datafoodconsortium/taxonomies/releases/latest/download/productTypes.rdf#soft-drink"
name: "Fruit Juice",
dfc_id: "https://github.com/datafoodconsortium/taxonomies/releases/latest/download/productTypes.rdf#fruit-juice"
)
}