Fixes deprecations on user routes

This commit is contained in:
Robin Ward
2015-05-04 16:41:06 -04:00
parent 72b6c86564
commit aab9706b7a
15 changed files with 102 additions and 95 deletions

View File

@@ -20,8 +20,7 @@ test("unreadTotal default", function() {
test("unreadTotal with values", function() {
var controller = this.subject({
currentUser: Discourse.User.create(),
unreadTopics: 1,
newTopics: 3
model: { unreadTopics: 1, newTopics: 3 }
});
equal(controller.get('unreadTotal'), 4);
});