[rspec-users] Mocking Workers in Backgroundrb

Shane Mingins smingins at elctech.com
Wed Oct 31 15:27:09 EDT 2007

On 30/10/2007, at 10:58 AM, Lance Carlson wrote:

> MiddleMan = Object.new
> at the top of my spec file worked better for me. I didn't want to have
> to mess with ENV variables.

Hi  Guys

This solution seemed to work nicely ... I was getting warnings about  
redefining the constant and so added:

class Object;  remove_const :MiddleMan; end


More information about the rspec-users mailing list