mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
Patching a json test
This commit is contained in:
@@ -88,7 +88,7 @@ describe Shop::CheckoutController do
|
||||
it "returns errors" do
|
||||
xhr :post, :update, order: {}, use_route: :spree
|
||||
response.status.should == 400
|
||||
response.body.should == {errors: assigns[:order].errors, flash: []}.to_json
|
||||
response.body.should == {errors: assigns[:order].errors, flash: {}}.to_json
|
||||
end
|
||||
|
||||
it "returns flash" do
|
||||
|
||||
Reference in New Issue
Block a user