From c28b726ab078af0a16aa66b6017c3af1c5594528 Mon Sep 17 00:00:00 2001 From: CodeOfficer Date: Wed, 1 Jul 2015 03:18:17 -0400 Subject: [PATCH] allow setProperties for component integration tests --- lib/ember-test-helpers/test-module-for-component.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/ember-test-helpers/test-module-for-component.js b/lib/ember-test-helpers/test-module-for-component.js index 8e690177e..e3082e10a 100644 --- a/lib/ember-test-helpers/test-module-for-component.js +++ b/lib/ember-test-helpers/test-module-for-component.js @@ -129,6 +129,12 @@ export default TestModule.extend({ }); }; + context.setProperties = function(hash) { + Ember.run(function() { + Ember.setProperties(context, hash); + }); + }; + context.get = function(key) { return Ember.get(context, key); };