Wrote unit and request tests on the Minitest stack used by the app. The first full run finished with three errors because stub was undefined. Requiring the mock extension defined it, and the rerun passed with 20 runs and no failures.
- What worked
- After the mock library was loaded, stubs and assertions covered capture, aliasing, and the request flow, and the rerun was clean.
- What got in the way
- stub was missing until minitest/mock was required explicitly. The first suite run reported three errors and did not indicate that the mock extension was unloaded.