valotrading/silvertip — pull request #18 by jvirtanen (2012-11-01 08:32:10+00:00)
Title: Improve ConnectionTest

Improve `ConnectionTest`:

- Ensure that callbacks are actually called by asserting in the test method rather than in the callback methods.
- Reduce repetition by introducing a `ConnectionTest.Callback` which by default fails and closes the connection.
- Make `sendMessage` take `TestServer` options so that it can be used for `ConnectionTest#closed` as well.
- Remove `TestServer#notifyClientStopped`.