a915390a7d
no issue - upgrades ember-cli, ember-cli-mocha, ember-mocha dependencies - switches Brocfile.js to ember-cli-build.js - fixes controller tests with missing needs Pulled into a separate PR as it doesn't affect running code but does provide access to the very useful component integration tests.
19 lines
512 B
JavaScript
19 lines
512 B
JavaScript
import Ember from 'ember';
|
|
import Application from '../../app';
|
|
import config from '../../config/environment';
|
|
|
|
export default function startApp(attrs) {
|
|
var application,
|
|
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;
|
|
}
|