Colin Timmermans

Results 14 comments of Colin Timmermans

I think this would achieve what you're after: ```js // Register this as the last handler, which will catch any unmatched request mock.onAny().reply(function(config) { throw new Error('Could not find mock...

Can you show what the `fetchFromMock` implementation looks like?

Since you can reply with a promise, you can use that in combination with setTimeout to have per-request delays: ```js mock.onGet('/any').reply(function(config) { return new Promise(function(resolve, reject) { setTimeout(function() { resolve([201,...

This is actually because of a change in RSpec 2.10.1, which causes `RSpec.reset` to correctly reset the configuration, including all defined before/after hooks.