ariatemplates/ariatemplates — pull request #407 by piuccio (2013-03-07 10:05:50+00:00)
Title: Improve ModuleCtrlTestCase

Improve `ModuleCtrlTestCase` by providing automatic creation and disposal of tested module.

By specifying `$controller` in the test's `$prototype` an instance of that class is generated before running the test.

The tester can then access the two variables `$moduleCtrl` and `$moduleCtrlPrivate`.

The public interface is also registered for asserting its logs, so there's no need to call anymore `registerObject`.

The test makes sure that objects are created and disposed correctly off-loading some work from the developer.