Sha256: 53f895610a5ec28ec0279f1847d4371374d1d58fe83dbe9c9deeb963bc692945

Contents?: true

Size: 761 Bytes

Versions: 8

Compression:

Stored size: 761 Bytes

Contents

#= require jquery

describe "the #konacha element", ->
  it "can have content added in one test...", ->
    $('#konacha').append('<h1 id="added">New Stuff</h1>')
    $('#konacha h1#added').length.should.equal(1)

  it "... that is removed before the next one starts", ->
    $('#konacha h1#added').length.should.equal(0)

  it "can have an attribute added in one test...", ->
    $('#konacha').addClass('test')

  it "... that is removed before the next one starts", ->
    $('#konacha').hasClass('test').should.be.false

  it "can be removed in one test...", ->
    $('#konacha').remove()

  it "... and is re-added before the next one starts", ->
    $('#konacha').length.should.equal(1)

  it "is visible", ->
    $('#konacha').is(':visible').should.be.true

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
konacha-1.5.1 spec/dummy/spec/javascripts/test_element_spec.js.coffee
konacha-1.5.0 spec/dummy/spec/javascripts/test_element_spec.js.coffee
konacha-1.4.2 spec/dummy/spec/javascripts/test_element_spec.js.coffee
konacha-1.4.1 spec/dummy/spec/javascripts/test_element_spec.js.coffee
konacha-1.4.0 spec/dummy/spec/javascripts/test_element_spec.js.coffee
konacha-1.3.1 spec/dummy/spec/javascripts/test_element_spec.js.coffee
konacha-1.3.0 spec/dummy/spec/javascripts/test_element_spec.js.coffee
konacha-1.2.4 spec/dummy/spec/javascripts/test_element_spec.js.coffee