module BitGirder::Event::Logger::Testing

Provides helpers for testing event flow in an application. In addition to testing the basic operation of an event listener (does it serialize correctly, filter appropriately, etc), thoroughly tested applications will want to add coverge of specific events.

For example, suppose an application expects to log an event upon every login attempt, including the user id, login completion time, and result (success, unknown user, bad password, etc). This data might be used in realtime to look for ongoing attacks on an account, or over time to track user engagement. In any event, the events are an important part of the application, but an inadvertent change in the login handling code might cause logins to not be logged. This module helps make it easy to include assertions about event delivery right alongside other assertions (that a login succeeded or failed as expected).