Skip to content

Instantly share code, notes, and snippets.

@CodeOfficer
Created December 12, 2012 03:19
Show Gist options
  • Save CodeOfficer/4264600 to your computer and use it in GitHub Desktop.
Save CodeOfficer/4264600 to your computer and use it in GitHub Desktop.
mocha ember
require 'tests/support/test_helper'
describe "Ember Application", ->
application = null
beforeEach (done) ->
Ember.$("body").append "<div id='app'></div>"
Ember.run ->
application = Em.Application.create(rootElement: "#app", autoinit: false)
application.initialize()
done()
afterEach (done) ->
Ember.run ->
application.destroy()
application = null
Ember.$("#app").remove()
done()
it "can initialize the application and do whatever", ->
assert.ok true, "does not raise"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment