FIX: Include dummy capabilities object in component tests

This commit is contained in:
Robin Ward 2015-09-02 16:17:46 -04:00
parent 2b9b29c8c8
commit 286738c712
1 changed files with 2 additions and 0 deletions

View File

@ -13,8 +13,10 @@ export default function(name, opts) {
this.container.register('site-settings:main', Discourse.SiteSettings, { instantiate: false });
this.container.register('app-events:main', appEvents, { instantiate: false });
this.container.register('capabilities:main', Ember.Object);
this.container.injection('component', 'siteSettings', 'site-settings:main');
this.container.injection('component', 'appEvents', 'app-events:main');
this.container.injection('component', 'capabilities', 'capabilities:main');
andThen(() => {
this.render(opts.template);