jjh42 / mock

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

Docs around mocking based on parts of the input #123

Closed mrjoelkemp closed 3 years ago

mrjoelkemp commented 3 years ago

I had the very case that I included as a bullet point in the docs. I didn't see an obvious way to do it with Mock because the examples were assuming you wanted to mock based on the exact input value. I wanted to mock based on parts of the input value. I figured out how to do it with Mock and thought it would be helpful for others to have explicit docs around this.

Happy to change any of the language. Thanks for the great library.

coveralls commented 3 years ago

Coverage Status

Coverage remained the same at 100.0% when pulling 5809dba3864a049d14b987924fe4fdf78d1add6b on mrjoelkemp:patch-1 into 0e07a6e5fbfddce58dfa006907018e75cb978695 on jjh42:master.