jjh42 / mock

Mocking library for Elixir language
MIT License
639 stars 81 forks source link

[Issue 80] Update README with working input-dependent returns. #106

Closed bannmoore closed 4 years ago

bannmoore commented 4 years ago

Documentation and test update for Issue 80.

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.

coveralls commented 4 years ago

Coverage Status

Coverage remained the same at 100.0% when pulling 2eb7dd1b3f3fb4262c78adb36bfd423c84e07dd2 on bannmoore:with-mock-documentation into 7d778e9c44a04ef50c2a23b78c5ee49714d57baa on jjh42:master.