Kagemusha – 影武者
Kagemusha is a library of helper functions for testing Ruby scripts. It helps you generating scoped mock-objects which overrides behavior of the class restricted in given blocks, without tainting a global area.
# gem install kagemusha
Demonstration of usage
This code is free to use under the terms of Ruby’s license.
Comments are welcome. Send an email to yuyakato at gmail dot com.