ES6: Notification controllers, added helper to create via ES6/container

This commit is contained in:
Robin Ward
2014-05-12 14:01:21 -04:00
parent 51750f7d0e
commit 07007e6cbc
6 changed files with 19 additions and 15 deletions

View File

@ -10,16 +10,14 @@ var noItemsMessageSelector = "div.none";
var itemListSelector = "ul";
var itemSelector = "li";
module("Discourse.NotificationsController", {
module("controller:notifications", {
setup: function() {
sinon.stub(I18n, "t", function (scope, options) {
options = options || {};
return [scope, options.username, options.link].join(" ").trim();
});
controller = Discourse.NotificationsController.create({
container: Discourse.__container__
});
controller = testController('notifications');
view = Ember.View.create({
container: Discourse.__container__,