hashrocket / capybara-webmock

Mock external requests for Capybara JavaScript drivers
MIT License
51 stars 19 forks source link

Handling pid from Webmock, tracking proxied requests, CORS #18

Closed DavidMikeSimon closed 6 years ago

DavidMikeSimon commented 7 years ago

(This PR was moved from #17)

So I started out thinking "I really wish I could see which requests were proxied from within my capybara specs", and ended up with this PR, which rewrites large portions of capybara-webmock.

This is definitely a doozy, but I think I have a good reason behind each change I made:

Please let me know if you are interested in merging any of these changes back into the main branch, and if there's anything I can do to bring this code up to your standards. And, thank you for creating the wonderful and helpful tool capybara-webmock. :-)

DavidMikeSimon commented 7 years ago

Update: I also added some CORS headers to mocked responses so that non-GET requests to external domains can be mocked

dillonhafer commented 7 years ago

Thanks again for all this ❤️ we are still going to look over the changes (and mostly likely merge them), it's just going to take us a few days.

hashrocketeer commented 6 years ago

Closing this PR; we've merged most of the changes in via #29 and released as v0.5.0. Thank you! :heart: 🎉

DavidMikeSimon commented 6 years ago

@hashrocketeer Awesome! Thank you! 😁