More spec fixing

This commit is contained in:
2014-12-04 19:00:53 +01:00
parent 524140cf60
commit 3941529d0d
6 changed files with 46 additions and 38 deletions
@@ -63,7 +63,9 @@ end
step "the user order :product_name should be in the order list with price" do |product_name|
concerning_product = Product.find_by_name(product_name)
ember_order = ember_store['product_orders'].find{|po| po['product_id'] == concerning_product.id}
#ember_order = ember_store['product_orders'].find{|po| po['product_id'] == concerning_product.id}
ember_order = ember_find('product_order', concerning_product.id)
binding.pry
quantity = ember_order['quantity']
order_price = quantity * concerning_product.price
within '.product-orders .product-order' do