diff options
author | José Valim <jose.valim@plataformatec.com.br> | 2018-11-30 17:17:01 +0100 |
---|---|---|
committer | José Valim <jose.valim@plataformatec.com.br> | 2018-11-30 17:17:01 +0100 |
commit | 0424431e5589d8a8303180b70e736005a7729a60 (patch) | |
tree | a22b6f3483dd39d48b20f9c1bafd9da217920a10 | |
parent | 9d9d730f5f0bed5bff878af4c7472840b0da87ce (diff) | |
download | elixir-0424431e5589d8a8303180b70e736005a7729a60.tar.gz |
Avoid warnings on mix/tasks/new_test.exs
-rw-r--r-- | lib/mix/test/mix/tasks/new_test.exs | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/mix/test/mix/tasks/new_test.exs b/lib/mix/test/mix/tasks/new_test.exs index 51fece39f..b52069401 100644 --- a/lib/mix/test/mix/tasks/new_test.exs +++ b/lib/mix/test/mix/tasks/new_test.exs @@ -73,10 +73,9 @@ defmodule Mix.Tasks.NewTest do test "new with --module uses the module name also for naming the files in lib and test" do in_tmp("new_with_module", fn -> - Mix.Tasks.New.run([".", "--sup", "--module", "MyTestModule"]) - assert_file("lib/my_test_module.ex", ~r/defmodule MyTestModule do/) - assert_file("lib/my_test_module/application.ex", ~r/defmodule MyTestModule.Application do/) - assert_file("test/my_test_module_test.exs", ~r/defmodule MyTestModuleTest do/) + Mix.Tasks.New.run(["hello_world", "--module", "MyTestModule"]) + assert_file("hello_world/lib/my_test_module.ex", ~r/defmodule MyTestModule do/) + assert_file("hello_world/test/my_test_module_test.exs", ~r/defmodule MyTestModuleTest do/) end) end |