Patching a json test

This commit is contained in:
Will Marshall
2014-04-23 16:58:38 +10:00
parent 131b4ac073
commit b4da348e36

View File

@@ -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