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
26
26
assert config [ :app ] == :git_repo
27
27
assert config [ :deps_path ] =~ ~r/ mix-local-installer-fetcher-.*\/ deps/
28
28
assert config [ :lockfile ] =~ ~r/ mix-local-installer-fetcher-.*\/ mix.lock/
29
+ after
30
+ purge ( [ GitRepo.MixProject , Mix.Local.Installer.MixProject ] )
29
31
end
30
32
31
33
test "parse_args Git" do
Original file line number Diff line number Diff line change @@ -172,7 +172,7 @@ defmodule Mix.Tasks.ArchiveTest do
172
172
assert File . dir? ( tmp_path ( "userhome/.mix/archives/git_repo-0.1.0/git_repo-0.1.0/ebin" ) )
173
173
end )
174
174
after
175
- purge ( [ GitRepo.Archive , GitRepo.MixProject ] )
175
+ purge ( [ GitRepo.Archive , GitRepo.MixProject , Mix.Local.Installer.MixProject ] )
176
176
end
177
177
178
178
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
336
336
require Application
337
337
true = Application.compile_env!(:git_repo, :escript_config)
338
338
339
- defmodule GitRepo do
339
+ defmodule GitRepo.Escript do
340
340
def main(_argv) do
341
341
IO.puts("TEST")
342
342
end
@@ -348,7 +348,7 @@ defmodule Mix.Tasks.EscriptTest do
348
348
use Mix.Project
349
349
350
350
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 ]]
352
352
end
353
353
end
354
354
""" )
@@ -364,7 +364,7 @@ defmodule Mix.Tasks.EscriptTest do
364
364
assert System . cmd ( "escript" , [ escript_path ] ) == { "TEST\n " , 0 }
365
365
end )
366
366
after
367
- purge ( [ GitRepo , GitRepo.MixProject ] )
367
+ purge ( [ GitRepo.Escript , GitRepo.MixProject , Mix.Local.Installer .MixProject] )
368
368
end
369
369
370
370
defp push_project_with_config ( module , config \\ [ ] ) do
You can’t perform that action at this time.
0 commit comments