mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-01 02:03:22 +00:00
fix product controller tests
This commit is contained in:
@@ -102,7 +102,8 @@ describe Api::V0::ProductsController, type: :controller do
|
||||
expect(response.status).to eq(422)
|
||||
expect(json_response["error"]).to eq("Invalid resource. Please fix errors and try again.")
|
||||
errors = json_response["errors"]
|
||||
expect(errors.keys).to match_array(["name", "primary_taxon", "supplier", "variant_unit"])
|
||||
expect(errors.keys).to match_array(["name", "primary_taxon", "supplier", "variant_unit",
|
||||
"price"])
|
||||
end
|
||||
|
||||
it "can update a product" do
|
||||
|
||||
Reference in New Issue
Block a user