Sha256: 8f8f0a05341e46d47e0b353e59a0afcb42820f958f92054e64e86e18bb53120a

Contents?: true

Size: 735 Bytes

Versions: 5

Compression:

Stored size: 735 Bytes

Contents

describe 'The DOM Helpers module', ->
  describe "The Wrapping Helper", ->
    it "should accept a space delimited list", ->
      v = new Luca.View(wrapperClass: "class-one class-two")
      expect( v.$el.parent().is(".class-one.class-two") ).toEqual(true)

  describe "Auto Assigning Class Names", ->
    it "should apply the class of the component all the way up its hierarchy", ->
      c = new Luca.Container()
      expect( c.$el.is(".luca-container") ).toBeTruthy()
      expect( c.$el.is(".luca-panel") ).toBeTruthy()

    it "should leave out backbone and luca view classes", ->
      c = new Luca.Container()
      expect( c.$el.is(".luca-view") ).not.toBeTruthy()
      expect( c.$el.is(".backbone-view") ).not.toBeTruthy()

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
luca-0.9.91 spec/javascripts/concerns/dom_helpers_spec.coffee
luca-0.9.9 spec/javascripts/concerns/dom_helpers_spec.coffee
luca-0.9.899 spec/javascripts/concerns/dom_helpers_spec.coffee
luca-0.9.89 spec/javascripts/concerns/dom_helpers_spec.coffee
luca-0.9.8 spec/concerns/dom_helpers_spec.coffee