Skip to content

Instantly share code, notes, and snippets.

@ihumanable
Created November 23, 2021 00:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save ihumanable/92929b092fb8610da7a5a12f882d88f1 to your computer and use it in GitHub Desktop.
Save ihumanable/92929b092fb8610da7a5a12f882d88f1 to your computer and use it in GitHub Desktop.
Test Output (Mock 1)
~/src/discord > mix test
1) test send_message/1 errors on invalid messages (Discord.Test)
test/discord_test.exs:7
** (ErlangError) Erlang error: {:undefined_function, {Discord, :validate_message, 1}}
code: with_mock Discord, [validate_message: fn(_message) -> {:error, :bad} end] do
3 tests, 1 failure
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment