main
1import Ember from 'ember';
2import Application from '../../app';
3import Router from '../../router';
4import config from '../../config/environment';
5
6export default function startApp(attrs) {
7 var App;
8
9 var attributes = Ember.merge({}, config.APP);
10 attributes = Ember.merge(attributes, attrs); // use defaults, but you can override;
11
12 Router.reopen({
13 location: 'none'
14 });
15
16 Ember.run(function() {
17 App = Application.create(attributes);
18 App.setupForTesting();
19 App.injectTestHelpers();
20 });
21
22 App.reset(); // this shouldn't be needed, i want to be able to "start an app at a specific URL"
23
24 return App;
25}