In the course of developing and testing various components for working with Puppet, I had a particularly difficult time with stubbing calls to other Ruby objects outside of my control.
After a ridiculous amount of searching, I finally found the answer that made the whole process seamless.