OK - I got this working using mocha and the 'any_instance' method. A gist with working examples is here: https://gist.github.com/879029
It looks like rspec mocks had an 'any_instance' method, but it was removed because it promoted 'bad practice'. I'm curious to understand how 'any_instance' promotes bad practice. I found it useful in my situation, to stub out slow network code that crushed my test performance. - Andy
_______________________________________________ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users