   end
 
   test "application properties validation" do
-    Mix.Project.push InvalidProject
+    Mix.Project.push(InvalidProject)
 
     in_fixture "no_mixfile", fn ->
       Process.put(:application, [:not_a_keyword, applications: []])
       message = "Application configuration returned from application/0 should be a keyword list"
-      assert_raise Mix.Error, message, fn ->
-        Mix.Tasks.Compile.App.run([])
-      end
-
-      Process.put(:application, [modules: :invalid])
+
+      assert_raise Mix.Error, message, fn ->
+        Mix.Tasks.Compile.App.run([])
+      end
+
+      Process.put(:application, modules: :invalid)
       message = "Application modules (:modules) should be a list of atoms, got: :invalid"
-      assert_raise Mix.Error, message, fn ->
-        Mix.Tasks.Compile.App.run([])
-      end
-
-      Process.put(:application, [maxT: :invalid])
+
+      assert_raise Mix.Error, message, fn ->
+        Mix.Tasks.Compile.App.run([])
+      end
+
+      Process.put(:application, maxT: :invalid)
       message = "Application maximum time (:maxT) is not an integer or :infinity, got: :invalid"
-      assert_raise Mix.Error, message, fn ->
-        Mix.Tasks.Compile.App.run([])
-      end
-
-      Process.put(:application, [registered: ["invalid"]])
-      message = "Application registered processes (:registered) should be a list of atoms, got: [\"invalid\"]"
-      assert_raise Mix.Error, message, fn ->
-        Mix.Tasks.Compile.App.run([])
-      end
-
-      Process.put(:application, [extra_applications: ["invalid"]])
-      message = "Application extra applications (:extra_applications) should be a list of atoms, got: [\"invalid\"]"
-      assert_raise Mix.Error, message, fn ->
-        Mix.Tasks.Compile.App.run([])
-      end
-
-      Process.put(:application, [included_applications: ["invalid"]])
-      message = "Application included applications (:included_applications) should be a list of atoms, got: [\"invalid\"]"
-      assert_raise Mix.Error, message, fn ->
-        Mix.Tasks.Compile.App.run([])
-      end
-
-      Process.put(:application, [applications: ["invalid"]])
-      message = "Application applications (:applications) should be a list of atoms, got: [\"invalid\"]"
-      assert_raise Mix.Error, message, fn ->
-        Mix.Tasks.Compile.App.run([])
-      end
-
-      Process.put(:application, [applications: nil])
+
+      assert_raise Mix.Error, message, fn ->
+        Mix.Tasks.Compile.App.run([])
+      end
+
+      Process.put(:application, registered: ["invalid"])
+
+      message =
+        "Application registered processes (:registered) should be a list of atoms, got: [\"invalid\"]"
+
+      assert_raise Mix.Error, message, fn ->
+        Mix.Tasks.Compile.App.run([])
+      end
+
+      Process.put(:application, extra_applications: ["invalid"])
+
+      message =
+        "Application extra applications (:extra_applications) should be a list of atoms, got: [\"invalid\"]"
+
+      assert_raise Mix.Error, message, fn ->
+        Mix.Tasks.Compile.App.run([])
+      end
+
+      Process.put(:application, included_applications: ["invalid"])
+
+      message =
+        "Application included applications (:included_applications) should be a list of atoms, got: [\"invalid\"]"
+
+      assert_raise Mix.Error, message, fn ->
+        Mix.Tasks.Compile.App.run([])
+      end
+
+      Process.put(:application, applications: ["invalid"])
+
+      message =
+        "Application applications (:applications) should be a list of atoms, got: [\"invalid\"]"
+
+      assert_raise Mix.Error, message, fn ->
+        Mix.Tasks.Compile.App.run([])
+      end
+
+      Process.put(:application, applications: nil)
       message = "Application applications (:applications) should be a list of atoms, got: nil"
-      assert_raise Mix.Error, message, fn ->
-        Mix.Tasks.Compile.App.run([])
-      end
-
-      Process.put(:application, [env: [:invalid]])
+
+      assert_raise Mix.Error, message, fn ->
+        Mix.Tasks.Compile.App.run([])
+      end
+
+      Process.put(:application, env: [:invalid])
       message = "Application environment (:env) should be a keyword list, got: [:invalid]"
-      assert_raise Mix.Error, message, fn ->
-        Mix.Tasks.Compile.App.run([])
-      end
-
-      Process.put(:application, [mod: {Mod}])
-      message = "Application callback module (:mod) should be either [] or {module, start_args}, got: {Mod}"
-      assert_raise Mix.Error, message, fn ->
-        Mix.Tasks.Compile.App.run([])
-      end
-
-      Process.put(:application, [start_phases: [:invalid]])
-      message = "Application start phases (:start_phases) should be a keyword list, got: [:invalid]"
+
+      assert_raise Mix.Error, message, fn ->
+        Mix.Tasks.Compile.App.run([])
+      end
+
+      Process.put(:application, mod: {Mod})
+
+      message =
+        "Application callback module (:mod) should be either [] or {module, start_args}, got: {Mod}"
+
+      assert_raise Mix.Error, message, fn ->
+        Mix.Tasks.Compile.App.run([])
+      end
+
+      Process.put(:application, start_phases: [:invalid])
+
+      message =
+        "Application start phases (:start_phases) should be a keyword list, got: [:invalid]"
+
       assert_raise Mix.Error, message, fn ->
         Mix.Tasks.Compile.App.run([])
       end

    end

    def deps do
      [{:ok1, path: "../ok"},
       {:ok2, path: "../ok", only: :prod},
       {:ok3, path: "../ok", only: :dev},
       {:ok4, path: "../ok", runtime: true},
       {:ok5, path: "../ok", runtime: false},
       {:ok6, path: "../ok", optional: true},
       {:ok7, path: "../ok", optional: false},
       {:ok8, path: "../ok", app: false},
       {:ok9, path: "../ok"}]
    end
  end


  end

  test "generates .app file when changes happen" do
    Mix.Project.push(MixTest.Case.Sample)

    in_fixture "no_mixfile", fn ->
      Mix.Tasks.Compile.Elixir.run([])
