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

@ -11,13 +11,10 @@ var notificationFixture = {
};
var postUrlStub = "post-url-stub";
module("Discourse.NotificationController", {
module("controller:notification", {
setup: function() {
sinon.stub(Discourse.Utilities, "postUrl").returns(postUrlStub);
controller = Discourse.NotificationController.create({
content: notificationFixture
});
controller = testController('notification', notificationFixture);
},
teardown: function() {