Skip to content

Instantly share code, notes, and snippets.

@fayimora
Created May 26, 2013 08:52
Show Gist options
  • Save fayimora/5652133 to your computer and use it in GitHub Desktop.
Save fayimora/5652133 to your computer and use it in GitHub Desktop.

Revisions

  1. fayimora created this gist May 26, 2013.
    29 changes: 29 additions & 0 deletions test.coffee
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,29 @@
    "use strict"

    beforeEach ->
    Ember.run(App, App.advanceReadiness);
    Ember.testing = true

    afterEach ->
    App.reset()


    describe "App.ApplicationController", ->
    it "is an ember controller", ->
    # Ember.run(assert.ok(Ember.Controller.detect(App.ApplicationController)))
    appCont = App.ApplicationController.create({container: App.__container_, content: ''})
    expect(appCont).to.be.an('object')

    describe "It has an IndexRoute", ->
    it "has an IndexRoute", ->
    Ember.run ->
    m = App.Man.create()
    assert.equal(m.get('fullName'), 'Fayimora')

    describe "Give it some context", ->
    describe "maybe a bit more context here", ->
    it "should run here few assertions", ->
    expect([]).to.be.an "array"

    it "should assert these", ->
    assert.equal 1 + 1, 2