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

Version Path
embork-0.0.13 blueprint/tests/helpers/start-app.js
embork-0.0.12 blueprint/tests/helpers/start-app.js
embork-0.0.11 blueprint/tests/helpers/start-app.js
embork-0.0.10 blueprint/tests/helpers/start-app.js
embork-0.0.9 blueprint/tests/helpers/start-app.js
embork-0.0.8 blueprint/tests/helpers/start-app.js
embork-0.0.7 blueprint/tests/helpers/start-app.js
embork-0.0.6 blueprint/tests/helpers/start-app.js
embork-0.0.5 blueprint/tests/helpers/start-app.js
embork-0.0.4 blueprint/tests/helpers/start-app.js