Skip to content

Instantly share code, notes, and snippets.

@patrickberkeley
Created March 7, 2014 21:45
Show Gist options
  • Save patrickberkeley/9420855 to your computer and use it in GitHub Desktop.
Save patrickberkeley/9420855 to your computer and use it in GitHub Desktop.
Ember test helper for bootstrapping qunit tests
document.write('<div id="ember-testing-container"><div id="ember-testing"></div></div>')
App.rootElement = '#ember-testing'
App.ApplicationAdapter = DS.FixtureAdapter.extend()
App.setupForTesting()
App.injectTestHelpers()
window.exists = (selector) ->
!!find(selector).length
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment