Sign up ×  I'm using Autumn gem to create a Ruby IRC bot for a
game. However, it makes me feel rather embarrassed because I
don't know how to test this kind of program...  I think I should
mock the IO process to have a control over it but I can't see
how in this case when using the gem.  Has anyone an idea ?
share|improve this question  closed as too broad by MichaelT,
ChrisF May 5 '14 at 10:38   Are you trying to perform manual or
automated testing, or doesn't it matter? Are you testing your
application or trying to create tests for the gem? –  Thomas
Owens Jan 28 '12 at 14:08 I'm trying to perform automated
testing on my bot. –  Skydreamer Jan 28 '12 at 15:06  3 Answers
3  up vote 2 down vote accepted  It is very, very difficult to
test external dependencies in an automated repeatable fashion.
At least without creating more framework to fake the external
dependency than you've got code under test. And oftentimes that
sort of thing is very fragile anyhow, leading to lots of false
test failures.  I'm not a r