-
-
Save eriktrom/5652157 to your computer and use it in GitHub Desktop.
Revisions
-
eriktrom revised this gist
May 26, 2013 . 1 changed file with 3 additions and 17 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,7 +1,6 @@ "use strict" beforeEach -> Ember.testing = true afterEach -> @@ -11,19 +10,6 @@ afterEach -> describe "App.ApplicationController", -> it "is an ember controller", -> # Ember.run(assert.ok(Ember.Controller.detect(App.ApplicationController))) Em.run -> appCont = App.ApplicationController.create({container: App.__container_, content: ['']}) expect(appCont).to.be.an('object') -
fayimora created this gist
May 26, 2013 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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