2014-07-30 17:53:14 -04:00
|
|
|
moduleFor('controller:notifications', 'controller:notifications', {
|
|
|
|
needs: ['controller:header']
|
2013-11-08 15:06:27 -05:00
|
|
|
});
|
|
|
|
|
|
|
|
test("mixes in HasCurrentUser", function() {
|
2014-07-30 17:53:14 -04:00
|
|
|
ok(Discourse.HasCurrentUser.detect(this.subject()));
|
2013-11-08 15:06:27 -05:00
|
|
|
});
|
|
|
|
|
|
|
|
test("by default uses NotificationController as its item controller", function() {
|
2014-07-30 17:53:14 -04:00
|
|
|
equal(this.subject().get("itemController"), "notification");
|
2013-11-08 15:06:27 -05:00
|
|
|
});
|