Skip to content

Commit

Permalink
avoid unintentional context leakage across tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ef4 committed Mar 9, 2015
1 parent 41c780f commit 9675d6a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/ember-test-helpers/test-module-for-integration.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export default TestModule.extend({
template = Ember.Handlebars.compile(template);
}
self.view = Ember.View.create({
context: self,
context: context,
controller: self,
template: template,
container: self.container
Expand All @@ -41,12 +41,12 @@ export default TestModule.extend({

context.set = function(key, value) {
Ember.run(function() {
Ember.set(self, key, value);
Ember.set(context, key, value);
});
};

context.get = function(key) {
return Ember.get(self, key);
return Ember.get(context, key);
};

context.on = function(actionName, handler) {
Expand Down

0 comments on commit 9675d6a

Please sign in to comment.