Code52 / jibbr

A Jabbr bot designed for collaborative projects
code52.org
67 stars 27 forks source link

Make Bot testable and add unit tests. #75

Open brooklynDev opened 12 years ago

brooklynDev commented 12 years ago

Currently the bot correctly relies on an IHubProxy however instead of this getting injected, it's created on the fly in the constructor, thus preventing any simple mocking/stubbing. There's enough logic in the bot itself (and I predict that it'll just grow over time) that warrants a good suite of tests. Once the IHubProxy is injected properly, unit tests should be added to test the various bot commands available.

brooklynDev commented 12 years ago

I'll tackle this one tonight.