FIX: qunit tests pass, re-enable the category notifications dropdown button

This commit is contained in:
Neil Lalonde 2014-06-02 15:51:03 -04:00
parent daceea73a8
commit 5b39913766
2 changed files with 3 additions and 2 deletions

View File

@ -108,8 +108,7 @@ function buildCategoryRoute(filter, params) {
opts.noSubcategories = params && params.no_subcategories;
opts.canEditCategory = Discourse.User.currentProp('staff');
// TODO: @Neil FIXME, this breaks qunit!
// opts.canChangeCategoryNotificationLevel = Discourse.User.current();
opts.canChangeCategoryNotificationLevel = Discourse.User.current();
this.controllerFor('navigation/category').setProperties(opts);
return Discourse.TopicList.list(listFilter, params).then(function(list) {

View File

@ -12,6 +12,8 @@ test("Default List", function() {
test("List one Category", function() {
expect(2);
this.stub(Discourse.User, "current").returns(null);
visit("/category/bug").then(function() {
ok(exists("#topic-list"), "The list of topics was rendered");
ok(exists('#topic-list .topic-list-item'), "has topics");