Sha256: 12aed0dab304885bc6a8a6f21d2082d6091873e4e18429d7dbf37263a85f8ebf
Contents?: true
Size: 963 Bytes
Versions: 5
Compression:
Stored size: 963 Bytes
Contents
describe 'The Luca Utilities', -> describe "Converting from component class to css class", -> it "should produce a css class from the component class name", -> component = "Luca.Container" cssClass = Luca.util.toCssClass(component) expect( cssClass ).toEqual 'luca-container' it "should produce a css class from the component class name", -> component = "Luca.components.MultiCollectionView" cssClass = Luca.util.toCssClass(component) expect( cssClass ).toEqual 'luca-components-multi-collection-view' it "should produce a css class from the component class name", -> component = "Luca.View" cssClass = Luca.util.toCssClass(component) expect( cssClass ).toEqual 'luca-view' it "should exclude parts", -> component = "Luca.components.MultiCollectionView" cssClass = Luca.util.toCssClass(component, 'components') expect( cssClass ).toEqual "luca-multi-collection-view"
Version data entries
5 entries across 5 versions & 1 rubygems