       Mix.Task.run("invalid")
     end
 
-    misnamed_message =
+    message =
       "The task \"acronym.http\" could not be found because the module is named " <>
-      "Mix.Tasks.Acronym.HTTP instead of Mix.Tasks.Acronym.Http as expected. " <>
-      "Please rename it and try again"
-    assert_raise Mix.NoTaskError, misnamed_message, fn ->
+        "Mix.Tasks.Acronym.HTTP instead of Mix.Tasks.Acronym.Http as expected. " <>
+        "Please rename it and try again"
+
+    assert_raise Mix.NoTaskError, message, fn ->
       Mix.Task.run("acronym.http")
     end
   end
 
   test "run/2 converts OptionParser.ParseError into Mix errors" do
-    assert_raise Mix.Error,
-                 "Could not invoke task \"hello\": 1 error found!\n--unknown : Unknown option", fn ->
+    message = "Could not invoke task \"hello\": 1 error found!\n--unknown : Unknown option"
+
+    assert_raise Mix.Error, message, fn ->
       Mix.Task.run("hello", ["--parser", "--unknown"])
     end
 
-    Mix.Task.clear
-
-    assert_raise Mix.Error,
-                 "Could not invoke task \"hello\": 1 error found!\n--int : Expected type integer, got \"foo\"", fn ->
+    Mix.Task.clear()
+
+    message =
+      "Could not invoke task \"hello\": 1 error found!\n--int : Expected type integer, got \"foo\""
+
+    assert_raise Mix.Error, message, fn ->
       Mix.Task.run("hello", ["--parser", "--int", "foo"])
     end
   end
 
   test "run/2 outputs task debug info if Mix.debug? is true" do
-    Mix.shell Mix.Shell.IO
+    Mix.shell(Mix.Shell.IO)
     Mix.debug(true)
 
-    assert ExUnit.CaptureIO.capture_io(fn -> Mix.Task.run("hello") end) =~
-      "** Running mix hello"
+    assert ExUnit.CaptureIO.capture_io(fn -> Mix.Task.run("hello") end) =~ "** Running mix hello"
   after
     Mix.shell(Mix.Shell.Process)
     Mix.debug(false)

  test "reenable/1 for recursive inside umbrella" do
    in_fixture "umbrella_dep/deps/umbrella", fn ->
      Mix.Project.in_project(:umbrella, ".", fn _ ->
        assert [:ok, :ok] = Mix.Task.run "clean"
        assert :noop      = Mix.Task.run "clean"

        Mix.Task.reenable "clean"
        assert [:ok, :ok] = Mix.Task.run "clean"
        assert :noop      = Mix.Task.run "clean"
      end)
    end
  end

      end

      # Check if compile task have run
      refute Mix.TasksServer.run({:task, "compile", Mix.Project.get()})
    end
  end

  test "clear/0" do
    assert Mix.Task.run("hello") == "Hello, World!"
    Mix.Task.clear()
    assert Mix.Task.run("hello") == "Hello, World!"
  end

