[rspec-users] Class mocking

Pat Maddox pat.maddox at gmail.com
Fri Feb 27 13:01:38 EST 2009


On Fri, Feb 27, 2009 at 9:36 AM, Marcus Roberts
<M.Roberts at nittygritty.net> wrote:
> I'm going to assume that we're doing the wrong thing by assigning a constant, which changes my question to how do we mock/stub the behaviour of our classes without that behaviour passing from spec to spec when running autospec.

Take out the constant reassignment.  Did you see my comments earlier
about partial mocking?

Pat


More information about the rspec-users mailing list