diff --git a/lib/ember-test-helpers/test-module-for-component.js b/lib/ember-test-helpers/test-module-for-component.js index 8e690177e..4318a2410 100644 --- a/lib/ember-test-helpers/test-module-for-component.js +++ b/lib/ember-test-helpers/test-module-for-component.js @@ -63,16 +63,16 @@ export default TestModule.extend({ context.dispatcher.setup({}, '#ember-testing'); this.callbacks.render = function() { - var containerView = Ember.ContainerView.create({container: container}); + var subject; + Ember.run(function(){ - var subject = context.subject(); - containerView.pushObject(subject); - containerView.appendTo('#ember-testing'); + subject = context.subject(); + subject.appendTo('#ember-testing'); }); _this.teardownSteps.unshift(function() { Ember.run(function() { - Ember.tryInvoke(containerView, 'destroy'); + Ember.tryInvoke(subject, 'destroy'); }); }); };