Lots of work on tests

This commit is contained in:
Robin Ward
2014-07-30 18:56:01 -04:00
parent b6684e7168
commit 6f36d5996d
43 changed files with 248 additions and 311 deletions
+2 -2
View File
@@ -1,7 +1,7 @@
integration("Header", {
setup: function() {
var originalUser = Discourse.User.current();
sinon.stub(Discourse.User, "current").returns(originalUser);
sandbox.stub(Discourse.User, "current").returns(originalUser);
Discourse.User.current.returns(Ember.Object.create({
username: 'test',
staff: true,
@@ -29,7 +29,7 @@ test("header", function() {
// Logo changing
andThen(function() {
controllerFor("header").set("showExtraInfo", true);
controllerFor('header').set("showExtraInfo", true);
});
andThen(function() {