Mocks are sticking around between tests

A

Alex Baranosky

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,780
Messages
2,569,611
Members
45,273
Latest member
DamonShoem

Latest Threads

Top