Mocks are sticking around between tests

Hi guys,

I’m using RR as the mocking framework for a personal project of mine.
I’ve been using it to mock the new method for some classes and when I
run the tests they pass fine, but when I run ALL of the tests I run into
a problem where it seems like the “new” methods are still returning the
fake results, even when in a different test file.

Is there a way to turn off the stubbing of the new method manually? What
am I missing here?

Thanks for the help,
Alex

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs