mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-08 22:56:06 +00:00
Patching up the tests to check on our serialisers
This commit is contained in:
@@ -81,7 +81,7 @@ describe ShopController do
|
||||
it "only returns products for the current order cycle" do
|
||||
controller.stub(:current_order_cycle).and_return order_cycle
|
||||
xhr :get, :products
|
||||
response.body.should == [product].to_json
|
||||
response.body.should == [Spree::ProductSerializer.new(product)].to_json
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user