 
   test "help list default task", context do
     in_tmp context.test, fn ->
-      Mix.Tasks.Help.run []
+      Mix.Tasks.Help.run([])
 
-      {_, _, [output]} =
-        assert_received {:mix_shell, :info, [_]}
+      assert_received {:mix_shell, :info, [output]}
       assert output =~ ~r/^mix\s+# Runs the default task \(current: \"mix run\"\)/m
     end
   end

Code.require_file "../../test_helper.exs", __DIR__

defmodule Mix.Tasks.HelpTest do
  use MixTest.Case


  test "help --search PATTERN", context do
    in_tmp context.test, fn ->
      Mix.Tasks.Help.run(["--search", "deps"])
      assert_received {:mix_shell, :info, ["mix deps" <> _]}
      assert_received {:mix_shell, :info, ["mix deps.clean" <> _]}
    end
