 
       [xref_manifest] = Mix.Tasks.Compile.Xref.manifests()
 
-      assert_no_warn fn ->
+      assert_no_warn(fn ->
         assert Mix.Tasks.Compile.Xref.run([]) == {:noop, []}
-        refute File.exists? xref_manifest
-      end
+        refute File.exists?(xref_manifest)
+      end)
     end
   end
 

    in_fixture "no_mixfile", fn ->
      write_no_func()

      assert_warn_no_func fn ->
        assert Mix.Tasks.Compile.Elixir.run([]) == {:ok, []}
        assert {:noop, [_]} = Mix.Tasks.Compile.Xref.run([])
      end

      assert_no_warn fn ->
        assert {:noop, [_]} = Mix.Tasks.Compile.Xref.run([])
      end

      Mix.Task.reenable("xref")

      assert_warn_no_func fn ->
        assert {:noop, [_]} = Mix.Tasks.Compile.Xref.run(["--force"])
      end
    end
  end


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

defmodule Mix.Tasks.Compile.XrefTest do
  use MixTest.Case
