author | ymh <ymh.work@gmail.com> |
Fri, 02 Dec 2016 13:27:02 +0100 | |
changeset 458 | c3a5f4de29b0 |
parent 456 | 3a32d2f57429 |
child 517 | 3143195e91b4 |
permissions | -rw-r--r-- |
4 | 1 |
import Ember from 'ember'; |
2 |
import Application from '../../app'; |
|
3 |
import config from '../../config/environment'; |
|
4 |
||
5 |
export default function startApp(attrs) { |
|
136 | 6 |
let application; |
4 | 7 |
|
456 | 8 |
// use defaults, but you can override |
9 |
let attributes = Ember.assign({}, config.APP, attrs); |
|
4 | 10 |
|
136 | 11 |
Ember.run(() => { |
4 | 12 |
application = Application.create(attributes); |
13 |
application.setupForTesting(); |
|
14 |
application.injectTestHelpers(); |
|
15 |
}); |
|
16 |
||
17 |
return application; |
|
18 |
} |