Skip to content

Instantly share code, notes, and snippets.

@bhserna
Created June 6, 2013 20:47
Show Gist options
  • Save bhserna/5724801 to your computer and use it in GitHub Desktop.
Save bhserna/5724801 to your computer and use it in GitHub Desktop.
#= require application
#= require_self
#= require fixtures
#= require_tree .
document.write('<div id="ember-testing-container"><div id="ember-testing"></div></div>')
document.write('<style>#ember-testing-container { position: absolute; background: white; bottom: 0; right: 0; width: 640px; height: 384px; overflow: auto; z-index: 9999; border: 1px solid #ccc; } #ember-testing { zoom: 50%; }</style>')
App.rootElement = '#ember-testing'
App.setupForTesting()
App.injectTestHelpers()
App.Store = DS.Store.extend adapter: 'DS.FixtureAdapter'
QUnit.begin = ->
window._inn =
pushEvent: -> true
window.FB =
login: ->
status: 'connected'
QUnit.moduleStart = ->
Ember.run(App, App.advanceReadiness)
QUnit.moduleDone = ->
App.reset()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment