Controller spec api improvements
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user