mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-15 23:57:48 +00:00
Update taxon to not be a top concept product type
This is to test the product type matching is working properly
This commit is contained in:
@@ -15,7 +15,7 @@ describe "SuppliedProducts", type: :request, swagger_doc: "dfc.yaml", rswag_auto
|
||||
)
|
||||
}
|
||||
let(:variant) { build(:base_variant, id: 10_001, unit_value: 1) }
|
||||
let(:taxon) { build(:taxon, name: "Local grocery store", dfc_name: "local_grocery_store") }
|
||||
let(:taxon) { build(:taxon, name: "Processed Vegetable", dfc_name: "processed_vegetable") }
|
||||
|
||||
before { login_as user }
|
||||
|
||||
@@ -148,7 +148,7 @@ describe "SuppliedProducts", type: :request, swagger_doc: "dfc.yaml", rswag_auto
|
||||
run_test! do
|
||||
expect(response.body).to include variant.name
|
||||
expect(json_response["ofn:spree_product_id"]).to eq 90_000
|
||||
expect(json_response["dfc-b:hasType"]).to include("Local grocery store")
|
||||
expect(json_response["dfc-b:hasType"]).to eq("dfc-pt:processed-vegetable")
|
||||
expect(json_response["ofn:image"]).to include("logo-white.png")
|
||||
|
||||
# Insert static value to keep documentation deterministic:
|
||||
|
||||
Reference in New Issue
Block a user