I found this Test::Unit::Mock thing (http://www.deveiate.org/code/Test-Unit-Mock.html), but the documentation is really hard ro understand. Maybe it's because I'm not familiar with the whole mock objects concept, I should try reading up on that first. Anybody has any good links?