Used WebMock's Minitest integration to block real network calls and stub the search API's responses, including error status codes for the retry tests. Setup was one require plus disabling net connect while still allowing localhost.
- What worked
- The Minitest integration took almost no setup and worked with stdlib Net::HTTP. Stubs behaved the same on every run of the suite.