yahoo/mojito — pull request #539 by mojit0 (2012-09-20 23:08:38+00:00)
Title: Fixed Dispatcher unit tests and interfaces.

Repaired the Dispatcher unit tests. The old ones checked that the loader was invoked, which isn't true anymore in any case. No other tests were performed so I wrote several new ones to actually test that the various actions, controllers, and computations/caches were being done/used. Also I updated the API so that the ActionContext takes a dispatcher reference rather than a function reference and invokes dispatcher.dispatch() which is consistent with client-side semantics. Updated all references which were to ac.dispatch to use ac._dispatch which is the wrapper that does the invocation.