You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We use webmock to stub out http requests made in our test suite, and the poundpay gem makes an external http request when the library is loaded, which makes it very difficult to stub out. I'll post any elegant solutions I have to this problem back here.
The text was updated successfully, but these errors were encountered:
Aarg .. I introduced this issue in the latest release. What is the idiomatic Ruby way to fix this?
Would it make sense for you to mock Poundpay.configure altogether? It seems strange to me that I would check for your environment in Poundpay.configure, especially since I'd have to make certain assumptions about where your environment is defined.
If not including the callback_url in the test configs works for you let me know.
We use webmock to stub out http requests made in our test suite, and the poundpay gem makes an external http request when the library is loaded, which makes it very difficult to stub out. I'll post any elegant solutions I have to this problem back here.
The text was updated successfully, but these errors were encountered: