Skip to content

Instantly share code, notes, and snippets.

@ianpetzer
Created June 14, 2013 06:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save ianpetzer/5779901 to your computer and use it in GitHub Desktop.
Save ianpetzer/5779901 to your computer and use it in GitHub Desktop.
//= require application
//= require_tree .
//= require_self
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();
function exists(selector) {
return !!find(selector).length;
}
@jlsuttles
Copy link

Setting the file type gives you syntax highlighting for free! https://gist.github.com/jlsuttles/6143801

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment