-Code.require_file "../test_helper.exs", __DIR__
+Code.require_file("../test_helper.exs", __DIR__)
 
 defmodule Mix.DepTest do
   use MixTest.Case
 
   defmodule DepsApp do
     def project do
-      [deps: [
-         {:ok,         "0.1.0", path: "deps/ok"},
-         {:invalidvsn, "0.2.0", path: "deps/invalidvsn"},
-         {:invalidapp, "0.1.0", path: "deps/invalidapp"},
-         {:noappfile,  "0.1.0", path: "deps/noappfile"},
-         {:uncloned,            git: "https://github.com/elixir-lang/uncloned.git"},
-         {:optional,            git: "https://github.com/elixir-lang/optional.git", optional: true}
-       ]]
+      [
+        deps: [
+          {:ok, "0.1.0", path: "deps/ok"},
+          {:invalidvsn, "0.2.0", path: "deps/invalidvsn"},
+          {:invalidapp, "0.1.0", path: "deps/invalidapp"},
+          {:noappfile, "0.1.0", path: "deps/noappfile"},
+          {:uncloned, git: "https://github.com/elixir-lang/uncloned.git"},
+          {:optional, git: "https://github.com/elixir-lang/optional.git", optional: true}
+        ]
+      ]
     end
   end
 

        assert_received {:mix_shell, :error, ["Dependencies have diverged:"]}
        refute Process.get(:remote_converger)
      end
    end
  after
    Mix.RemoteConverger.register(nil)
  end

  test "remote converger is not invoked if deps graph has cycles" do
    deps = [{:app1, "0.1.0", path: "app1"},
            {:app2, "0.1.0", path: "app2"}]

    with_deps deps, fn ->
      Mix.RemoteConverger.register(RaiseRemoteConverger)

      in_fixture "deps_cycle", fn ->

        deps = Process.get(:remote_converger) |> Enum.map(& &1.app)
        assert deps == [:ok, :invalidvsn, :deps_repo, :invalidapp, :noappfile, :git_repo]
      end
    end)
  after
    Mix.RemoteConverger.register(nil)
  end
