Skip to content

Instantly share code, notes, and snippets.

@zkessin
Created December 19, 2018 08:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zkessin/66692735f0507917449d7fc8cb46679d to your computer and use it in GitHub Desktop.
Save zkessin/66692735f0507917449d7fc8cb46679d to your computer and use it in GitHub Desktop.
defmodule ReconTest do
use ExUnit.Case, async: true
test "FAKE" do
ReconTrace.calls(
{module, function, 3},
10,
[
{:io_server, self()},
{:formatter,
fn {:trace, _pid, :call, {_module, _function, args}} ->
args
end}
]
)
assert_received(
{:io_request, _, _,
{:put_chars, :unicode, :io_lib, :format,
[
args,
[]
]}},
"##############################\n Module.store/3 not called"
)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment