Upgrades and fixes, maintenance
This commit is contained in:
@@ -35,12 +35,12 @@ describe ProductCategoryDecorator do
|
||||
|
||||
it "shows a dash when it is never visible" do
|
||||
product_category.stub(:week_days).and_return([0,0,0,0,0,0,0])
|
||||
subject.visible_on.should include 'icon-eye-close'
|
||||
subject.visible_on.should include 'product-category-visible-never'
|
||||
end
|
||||
|
||||
it "should display an icon when always visible" do
|
||||
product_category.stub(:week_days).and_return([1,1,1,1,1,1,1])
|
||||
subject.visible_on.should include 'icon-refresh'
|
||||
subject.visible_on.should include 'product-category-visible-always'
|
||||
end
|
||||
|
||||
it "should only display time when all days active and time range given" do
|
||||
|
||||
Reference in New Issue
Block a user