decide.nolog.cz/tests/helpers/start-app.js
jelhan 139b6b7088 upgrade ember-cli to 0.1.7
Tests doesn't run to due an error with relative api uri. This doesn't affect development or production environment.
2015-01-18 18:06:47 +01:00

19 lines
522 B
JavaScript

import Ember from 'ember';
import Application from '../../app';
import Router from '../../router';
import config from '../../config/environment';
export default function startApp(attrs) {
var application;
var attributes = Ember.merge({}, config.APP);
attributes = Ember.merge(attributes, attrs); // use defaults, but you can override;
Ember.run(function() {
application = Application.create(attributes);
application.setupForTesting();
application.injectTestHelpers();
});
return application;
}