Code cosmetics. Add some braces and line wraps for clarity. Don’t return something we don’t want to return.
Cleanup the whole DispatcherSpec.
- Don’t expect implementation details if not necessary. Test the normal stack by publishing router:match events.
- Use helpers and variables so the code is more readable. Use to.be.eql tests for params/route/options where applicable.
Check for PhantomJS in sendMessage.
Execute beforeAction in controller context. Closes gh-546.
Merge pull request #548 from chaplinjs/topics/function-before-actions

Clean up the Dispatcher spec.