From b4da348e36cad78d57cb6419cb4a6423fc7b11e1 Mon Sep 17 00:00:00 2001 From: Will Marshall Date: Wed, 23 Apr 2014 16:58:38 +1000 Subject: [PATCH] Patching a json test --- spec/controllers/shop/checkout_controller_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/controllers/shop/checkout_controller_spec.rb b/spec/controllers/shop/checkout_controller_spec.rb index 9086fe0953..bdefa65ec2 100644 --- a/spec/controllers/shop/checkout_controller_spec.rb +++ b/spec/controllers/shop/checkout_controller_spec.rb @@ -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