Bypass provides a quick way to create a custom plug that can be put in place instead of an actual HTTP server to return prebaked responses to client requests.
Allows the user to specify the number of calls to expect. Verify will fail if the number of actual calls is different than the number of expected calls.
Added expect/3 and expect/5 to setup a called exactly n times expectation.
Allows the user to specify the number of calls to expect. Verify will fail if the number of actual calls is different than the number of expected calls.
Added
expect/3
andexpect/5
to setup a called exactly n times expectation.