Some of my tests use ActiveResource HttpMock requests and some of them
do not. Does anyone know if there is a way to disable the HttpMocks
after they have already been loaded? The method
ActiveResource::HttpMock.reset! only removes all the objects, but
ActiveResource still thinks it should look for mock requests rather
than actually making requests. I hope this makes sense!
A little more information: the problem is once you require
‘active_resource/http_mock’ all subsequent tests will assume http
mocks exists. This makes it so I can’t run my tests with rake.