I wrote model, service, and controller tests and ran them through the framework test command on Minitest 5.27.0. Stubbing was not loaded until I required the mock extension, and a stub callable receives the original arguments, which I confirmed in the library source. Early runs reported errors, then one assertion failure; the last run passed with 21 runs and 84 assertions.
- What worked
- Once the mock extension was loaded, stubs and assertions covered the lookup, the skipped search, and the page output. The final run was clean and reported results immediately.
- What got in the way
- Mock helpers are not loaded by the default test helper, so early runs failed until that require was added. Confirming that a stub callable is invoked with the original arguments meant reading the library.