This PR updates the README example for input-dependent returns. The original example was calling with_mocks, when it needed to call with_mock (singular). The new example uses Map so that it doesn't rely on HTTPotion. I also added this example to the test files, to verify that it compiles and passes.
Coverage remained the same at 100.0% when pulling 2eb7dd1b3f3fb4262c78adb36bfd423c84e07dd2 on bannmoore:with-mock-documentation into 7d778e9c44a04ef50c2a23b78c5ee49714d57baa on jjh42:master.
Documentation and test update for Issue 80.
This PR updates the
README
example for input-dependent returns. The original example was callingwith_mocks
, when it needed to callwith_mock
(singular). The new example usesMap
so that it doesn't rely onHTTPotion
. I also added this example to the test files, to verify that it compiles and passes.