From 4c898cf5f6e3098c46c15d4a975bbb9fa032f8f1 Mon Sep 17 00:00:00 2001 From: Marten Schilstra Date: Mon, 20 Jul 2015 13:00:43 +0200 Subject: [PATCH] Stop using ContainerView --- lib/ember-test-helpers/test-module-for-component.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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'); }); }); };