More spec fixing
This commit is contained in:
@@ -21,8 +21,8 @@ step "then new product category with proper properties should have been created"
|
||||
#@product_category.week_days.should == [0, 0, 1, 0, 0, 0, 0]
|
||||
@product_category.full_day.should be true
|
||||
expect( @product_category.active_on_monday ).to be true
|
||||
expect( @product_category.active_on_monday ).to be true
|
||||
expect( @product_category.active_on_wednesday ).to be false
|
||||
expect( @product_category.active_on_tuesday ).to be false
|
||||
expect( @product_category.active_on_wednesday ).to be true
|
||||
#@product_category.product_ids.should == [@products.first.id]
|
||||
end
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user