Merge pull request #1483 from velesin/controller_tests

adds unit tests for Discourse.Controller
This commit is contained in:
Robin Ward 2013-09-30 10:08:39 -07:00
commit 57f7c794d7
1 changed files with 6 additions and 0 deletions

View File

@ -0,0 +1,6 @@
module("Discourse.Controller");
test("includes mixins", function() {
ok(Discourse.Presence.detect(Discourse.Controller.create()), "Discourse.Presence");
ok(Discourse.HasCurrentUser.detect(Discourse.Controller.create()), "Discourse.HasCurrentUser");
});