From e5269ab3e0605ad59ceab348c2e65944908ac954 Mon Sep 17 00:00:00 2001 From: Wojciech Zawistowski Date: Thu, 19 Dec 2013 18:54:24 +0100 Subject: [PATCH] adds small HasCurrentUser mixin test improvements --- test/javascripts/mixins/has_current_user_test.js | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/test/javascripts/mixins/has_current_user_test.js b/test/javascripts/mixins/has_current_user_test.js index 4eab06d27b1..2858c0d9f89 100644 --- a/test/javascripts/mixins/has_current_user_test.js +++ b/test/javascripts/mixins/has_current_user_test.js @@ -1,14 +1,7 @@ -module("Discourse.HasCurrentUser", { - setup: function() { - sinon.stub(Discourse.User, "current"); - }, - - teardown: function() { - Discourse.User.current.restore(); - } -}); +module("Discourse.HasCurrentUser"); test("adds `currentUser` property to an object and ensures it is not cached", function() { + sinon.stub(Discourse.User, "current"); var testObj = Ember.Object.createWithMixins(Discourse.HasCurrentUser, {}); Discourse.User.current.returns("first user");