ES6: AvatarSelector and HeaderController - also includes support for controllers with

camelcase via an error message.
This commit is contained in:
Robin Ward
2014-04-29 21:16:57 -04:00
parent 0327f469c1
commit 44b2f82be8
7 changed files with 40 additions and 12 deletions

View File

@ -4,10 +4,10 @@ var avatarSelector = Em.Object.create({
uploaded_avatar_template: "//cdn.discourse.org/uploads/meta_discourse/avatars/093/607/185cff113e/{size}.jpg"
});
module("Discourse.AvatarSelectorController");
module("controller:avatar-selector");
test("avatarTemplate", function() {
var avatarSelectorController = testController(Discourse.AvatarSelectorController);
var avatarSelectorController = controllerFor('avatar-selector');
avatarSelectorController.setProperties(avatarSelector);
equal(avatarSelectorController.get("avatarTemplate"),