From 2f9a467453b5c36ce614efba17c3707acbf5e64f Mon Sep 17 00:00:00 2001 From: Wojciech Zawistowski Date: Mon, 30 Sep 2013 18:12:12 +0200 Subject: [PATCH] adds unit tests for Discourse.Controller --- test/javascripts/controllers/controller_test.js | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 test/javascripts/controllers/controller_test.js diff --git a/test/javascripts/controllers/controller_test.js b/test/javascripts/controllers/controller_test.js new file mode 100644 index 00000000000..f5ee52d1845 --- /dev/null +++ b/test/javascripts/controllers/controller_test.js @@ -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"); +});