Controller spec api improvements

This commit is contained in:
2014-12-02 19:24:09 +01:00
parent 60e6b2a648
commit a0774caeff
7 changed files with 61 additions and 164 deletions
@@ -20,8 +20,9 @@ step "then new product category with proper properties should have been created"
@product_category = ProductCategory.find_by_name 'New product category'
#@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 false
expect( @product_category.active_on_tuesday ).to 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
#@product_category.product_ids.should == [@products.first.id]
end