File tree Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,8 @@ defmodule Mix.Local.InstallerTest do
2626 assert config [ :app ] == :git_repo
2727 assert config [ :deps_path ] =~ ~r/ mix-local-installer-fetcher-.*\/ deps/
2828 assert config [ :lockfile ] =~ ~r/ mix-local-installer-fetcher-.*\/ mix.lock/
29+ after
30+ purge ( [ GitRepo.MixProject , Mix.Local.Installer.MixProject ] )
2931 end
3032
3133 test "parse_args Git" do
Original file line number Diff line number Diff line change @@ -172,7 +172,7 @@ defmodule Mix.Tasks.ArchiveTest do
172172 assert File . dir? ( tmp_path ( "userhome/.mix/archives/git_repo-0.1.0/git_repo-0.1.0/ebin" ) )
173173 end )
174174 after
175- purge ( [ GitRepo.Archive , GitRepo.MixProject ] )
175+ purge ( [ GitRepo.Archive , GitRepo.MixProject , Mix.Local.Installer.MixProject ] )
176176 end
177177
178178 test "archive install, update, and uninstall life cycle" do
Original file line number Diff line number Diff line change @@ -336,7 +336,7 @@ defmodule Mix.Tasks.EscriptTest do
336336 require Application
337337 true = Application.compile_env!(:git_repo, :escript_config)
338338
339- defmodule GitRepo do
339+ defmodule GitRepo.Escript do
340340 def main(_argv) do
341341 IO.puts("TEST")
342342 end
@@ -348,7 +348,7 @@ defmodule Mix.Tasks.EscriptTest do
348348 use Mix.Project
349349
350350 def project do
351- [app: :git_repo, version: "0.1.0", escript: [main_module: GitRepo]]
351+ [app: :git_repo, version: "0.1.0", escript: [main_module: GitRepo.Escript ]]
352352 end
353353 end
354354 """ )
@@ -364,7 +364,7 @@ defmodule Mix.Tasks.EscriptTest do
364364 assert System . cmd ( "escript" , [ escript_path ] ) == { "TEST\n " , 0 }
365365 end )
366366 after
367- purge ( [ GitRepo , GitRepo.MixProject ] )
367+ purge ( [ GitRepo.Escript , GitRepo.MixProject , Mix.Local.Installer .MixProject] )
368368 end
369369
370370 defp push_project_with_config ( module , config \\ [ ] ) do
You can’t perform that action at this time.
0 commit comments