ES6: Half a dozen more controllers

This commit is contained in:
Robin Ward
2014-05-15 11:19:45 -04:00
parent 986e8f2f0f
commit 026cfe2dc7
9 changed files with 29 additions and 38 deletions

View File

@ -1,10 +1,10 @@
var controller, oldMobileView;
module("Discourse.SiteMapController", {
module("controller:site-map", {
setup: function() {
oldMobileView = Discourse.Mobile.mobileView;
controller = Discourse.SiteMapController.create();
controller = testController('site-map');
},
teardown: function() {
@ -13,7 +13,7 @@ module("Discourse.SiteMapController", {
});
test("itemController", function() {
equal(controller.get("itemController"), "siteMapCategory", "defaults to SiteMapCategoryController");
equal(controller.get("itemController"), "site-map-category", "defaults to site-map-category");
});
test("showAdminLinks", function() {