Skip to content

Commit

Permalink
fix product controller tests
Browse files Browse the repository at this point in the history
  • Loading branch information
abdellani committed Nov 28, 2023
1 parent c995f5d commit da90032
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion spec/controllers/api/v0/products_controller_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,8 @@
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
Expand Down

0 comments on commit da90032

Please sign in to comment.