Skip to content

Commit

Permalink
allow setProperties for component integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeOfficer committed Jul 1, 2015
1 parent eedfaf4 commit c28b726
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/ember-test-helpers/test-module-for-component.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
};
Expand Down

0 comments on commit c28b726

Please sign in to comment.