Sha256: 10281598866db0ae1f2294c0bee30d24edba4fc2a78005456d30e2c85a2c558b

Contents?: true

Size: 921 Bytes

Versions: 10

Compression:

Stored size: 921 Bytes

Contents

console.log("testing console output")

describe "Teabag running Mocha", ->

  it "is awesome", ->
    expect(passing).to.equal(true)


  describe "running tests", ->

    it "actually tests", ->
      # todo: provide similar fixture support for mocha
      #loadFixtures("fixture.html")
      #expect($("#fixture_view")).toExist()

    it "can handle more than one test", (done) ->
      test = ->
        expect(passing).to.equal(true)
        done()
      setTimeout(test, 1000)


  describe "failing tests", ->

    it "can fail", ->
      expect(failing).to.equal(false)


  describe "pending", ->

    it "is allowed"

    xit "doesn't get executed", ->
      alert("no no no")
      expect(false).to.equal(true)


  describe "nesting", ->

    describe "multiple levels", ->

      it "displays correctly", ->
        expect(passing).to.equal(true)


  it "is something cool", ->
    expect(passing).to.equal(true)

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
teabag-0.4.2 spec/javascripts/teabag/mocha/mocha_mspec.coffee
teabag-0.4.1 spec/javascripts/teabag/mocha/mocha_mspec.coffee
teabag-0.4.0 spec/javascripts/teabag/mocha/mocha_mspec.coffee
teabag-0.3.6 spec/javascripts/teabag/mocha/mocha_mspec.coffee
teabag-0.3.5 spec/javascripts/teabag/mocha/mocha_mspec.coffee
teabag-0.3.4 spec/javascripts/teabag/mocha/mocha_mspec.coffee
teabag-0.3.3 spec/javascripts/teabag/mocha/mocha_mspec.coffee
teabag-0.3.2 spec/javascripts/teabag/mocha/mocha_mspec.coffee
teabag-0.3.1 spec/javascripts/teabag/mocha/mocha_mspec.coffee
teabag-0.3.0 spec/javascripts/teabag/mocha/mocha_mspec.coffee