Skip to content

Commit 8bcbf19

Browse files
committed
Tackle with_io TODO
1 parent 72e211c commit 8bcbf19

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

test/mix/tasks/docs_test.exs

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,9 @@ defmodule Mix.Tasks.DocsTest do
2020
when is_list(args) and is_list(opts) and is_function(generator, 3) do
2121
opts = Keyword.put_new(opts, :output, context[:tmp_dir])
2222

23-
# TODO: Use with_io on Elixir v1.13
24-
output =
25-
capture_io(fn ->
26-
send(self(), run(context, args, opts, generator))
27-
end)
28-
29-
receive do
30-
response -> {response, output}
31-
end
23+
with_io(fn ->
24+
run(context, args, opts, generator)
25+
end)
3226
end
3327

3428
test "inflects values from app and version", context do

0 commit comments

Comments
 (0)