Sha256: cc48979715f25c81a2fbae7c2112605627f5d538b53ac080501feb9379875e40
Contents?: true
Size: 602 Bytes
Versions: 10
Compression:
Stored size: 602 Bytes
Contents
/* global require */ var Application = require('<%= namespace %>/app')['default']; var Router = require('<%= namespace %>/router')['default']; export default function startApp(attrs) { var App; var attributes = Ember.merge({ // useful Test defaults rootElement: '#ember-testing', LOG_ACTIVE_GENERATION:false, LOG_VIEW_LOOKUPS: false }, attrs); // but you can override; Router.reopen({ location: 'none' }); Ember.run(function(){ App = Application.create(attributes); App.setupForTesting(); App.injectTestHelpers(); }); App.reset(); return App; }
Version data entries
10 entries across 10 versions & 1 rubygems