Stubbing Entire Interfaces
Learn how to stub all of the functions in a mock module with the implementations in another module.
We'll cover the following...
We don’t always want to use the mock module for every test. Imagine we have tests that cover a piece of code that internally calls rain?/2
. In that case, we probably don’t want to set expectations on functions in the SoggyWaffle.WeatherAPIMock
module since we don’t care about checking how the mock module is called. We want to stub the functions in SoggyWaffle.WeatherAPIMock
so that they do the bare minimum to simulate ...