FIX: qunit tests pass, re-enable the category notifications dropdown button
This commit is contained in:
parent
daceea73a8
commit
5b39913766
|
@ -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) {
|
||||
|
|
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue