ES6: Tests

This commit is contained in:
Robin Ward
2014-07-31 12:05:47 -04:00
parent 3b46b5ecbf
commit b8bfbcb3cb
19 changed files with 7 additions and 0 deletions

View File

@ -0,0 +1,11 @@
moduleFor('controller:notifications', 'controller:notifications', {
needs: ['controller:header']
});
test("mixes in HasCurrentUser", function() {
ok(Discourse.HasCurrentUser.detect(this.subject()));
});
test("by default uses NotificationController as its item controller", function() {
equal(this.subject().get("itemController"), "notification");
});