artifice icon indicating copy to clipboard operation
artifice copied to clipboard

Connecting outside artifice

Open ilpoldo opened this issue 14 years ago • 1 comments

I'm switching away from a modified fakeweb I built into my Web service stubbing gem: Fredo. It was easy to replace and for free I oet an extra spec passing that I didn't get around fixing. Thanks!

On the downside three specs that involve requests not resolved by the rack endpoint being forwarded to the web went red.

I was wondering if it would it be possible, if the endpoint passed to Artifice returns a 404 to have Artifice revert back to the usual Net::HTTP connection if instructed to do so? Like fakeweb does.

ilpoldo avatar Apr 23 '10 10:04 ilpoldo

I've got a modification to Artifice in my fork that allows you to specify a host/port combination for which the rack endpoint applies, because I needed just this functionality. I'm having a few issues getting the specks + mocks working properly, but the functionality appears to work; I'll know later today whether it works in a production environment.

halostatue avatar Sep 23 '11 05:09 halostatue