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.
"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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment