We like passing specs

This commit is contained in:
2015-04-29 10:55:24 +02:00
parent e4e7198af5
commit dcd8c13e57
6 changed files with 15 additions and 12 deletions
+1 -1
View File
@@ -9,7 +9,7 @@ step "the order should be marked as delivered" do
end
step "another order is placed" do
@new_order = @list.place_order(products: {@product.id => 5}, user: @user)
@new_order = @list.place_order(product_orders: [{ 'product_id' => @product.id, 'quantity' => 5}], user: @user)
end
step "the user order should be created as a new order" do