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

Version Path
luca-0.9.91 spec/javascripts/core/util_spec.coffee
luca-0.9.9 spec/javascripts/core/util_spec.coffee
luca-0.9.899 spec/javascripts/core/util_spec.coffee
luca-0.9.89 spec/javascripts/core/util_spec.coffee
luca-0.9.8 spec/core/util_spec.coffee