Would you be open to me contributing a #clear
method in Faraday::Adapter::Test::Stubs
?
#1570
Labels
#clear
method in Faraday::Adapter::Test::Stubs
?
#1570
Hey folks! I've recently stumbled upon a challenge similar to what's documented in #1041. That is, my application uses singleton classes with memoized methods to "cache" a
Faraday
instance. This works great in production but my tests will suffer from being unable to stub out different behaviors of the same URL/action in subsequent test examples.I'm comfortable enough with the test adapter and stub code, and believe I could implement a method to clear the stubs reasonably well. Before I go off and spend time on that, could the maintainers of the project weigh in on whether such a thing would be in-line with the maintainers' goals and design philosophy?
Thanks in advance!
The text was updated successfully, but these errors were encountered: