@@ -12,8 +12,7 @@ defmodule Mix.DepsTest do
1212 { :invalidapp , "0.1.0" , path: "deps/invalidapp" } ,
1313 { :noappfile , "0.1.0" , path: "deps/noappfile" } ,
1414 { :uncloned , git: "https://github.com/elixir-lang/uncloned.git" } ,
15- { :optional , optional: true } ,
16- { :optional_git , optional: true , git: "https://github.com/elixir-lang/optinal.git" }
15+ { :optional , git: "https://github.com/elixir-lang/optional.git" , optional: true }
1716 ]
1817 ]
1918 end
@@ -36,12 +35,13 @@ defmodule Mix.DepsTest do
3635
3736 in_fixture "deps_status" , fn ->
3837 deps = Mix.Deps . fetched
39- assert length ( deps ) == 5
38+ assert length ( deps ) == 6
4039 assert Enum . find deps , & match? ( Mix.Dep [ app : :ok , status: { :ok , _ } ] , & 1 )
4140 assert Enum . find deps , & match? ( Mix.Dep [ app : :invalidvsn , status: { :invalidvsn , :ok } ] , & 1 )
4241 assert Enum . find deps , & match? ( Mix.Dep [ app : :invalidapp , status: { :invalidapp , _ } ] , & 1 )
4342 assert Enum . find deps , & match? ( Mix.Dep [ app : :noappfile , status: { :noappfile , _ } ] , & 1 )
4443 assert Enum . find deps , & match? ( Mix.Dep [ app : :uncloned , status: { :unavailable , _ } ] , & 1 )
44+ assert Enum . find deps , & match? ( Mix.Dep [ app : :optional , status: { :unavailable , _ } ] , & 1 )
4545 end
4646 after
4747 Mix.Project . pop
@@ -63,7 +63,7 @@ defmodule Mix.DepsTest do
6363
6464 in_fixture "deps_status" , fn ->
6565 msg = "Mix.DepsTest.NoSCMApp did not specify a supported scm for app :ok, " <>
66- "expected one of :git, :path, :in_umbrella or :optional "
66+ "expected one of :git, :path or :in_umbrella "
6767 assert_raise Mix.Error , msg , fn -> Mix.Deps . fetched end
6868 end
6969 after
@@ -120,7 +120,7 @@ defmodule Mix.DepsTest do
120120 app: :deps_repo,
121121 version: "0.1.0",
122122 deps: [
123- { :git_repo, "0.2.0", optional: true }
123+ { :git_repo, "0.2.0", git: MixTest.Case.fixture_path("git_repo"), optional: true }
124124 ]
125125 ]
126126 end
@@ -169,7 +169,7 @@ defmodule Mix.DepsTest do
169169 app: :deps_repo,
170170 version: "0.1.0",
171171 deps: [
172- { :git_repo, "0.2.0", optional: true }
172+ { :git_repo, "0.2.0", git: MixTest.Case.fixture_path("git_repo"), optional: true }
173173 ]
174174 ]
175175 end
0 commit comments