Time dependant product categories for users

This commit is contained in:
2015-01-22 17:49:32 +01:00
parent f434b53161
commit 36525849bd
24 changed files with 9981 additions and 46 deletions
@@ -130,3 +130,12 @@ step "the user has an active list with a/an :order_status order" do |order_statu
end
end
step "the user page contains the product category lunch" do
js_text("#product-category-#{@category_lunch.id} .product_category-title").should include @category_lunch.name
end
step "the user page contains the product category beer" do
js_text("#product-category-#{@category_beer.id} .product_category-title").should include @category_beer.name
end
step "the user page does not contain the product category lunch" do
page.should_not have_selector "#product-category-#{@category_lunch.id} .product_category-title"
end