File tree Expand file tree Collapse file tree 1 file changed +0
-27
lines changed Expand file tree Collapse file tree 1 file changed +0
-27
lines changed Original file line number Diff line number Diff line change @@ -855,33 +855,6 @@ defmodule Mix.Tasks.Compile.ElixirTest do
855855 end )
856856 end
857857
858- test "recompiles newly created files" do
859- in_fixture ( "no_mixfile" , fn ->
860- Mix.Project . push ( MixTest.Case.Sample )
861-
862- assert Mix.Tasks.Compile.Elixir . run ( [ "--verbose" ] ) == { :ok , [ ] }
863- assert_received { :mix_shell , :info , [ "Compiled lib/a.ex" ] }
864- assert_received { :mix_shell , :info , [ "Compiled lib/b.ex" ] }
865-
866- Mix . shell ( ) . flush ( )
867-
868- File . write! ( "lib/z.ex" , """
869- defmodule Z do
870- def ok, do: :ok
871- end
872- """ )
873-
874- Mix.Task . reenable ( "compile.elixir" )
875- assert { :ok , [ ] } = Mix.Tasks.Compile.Elixir . run ( [ "--verbose" ] )
876-
877- assert_received { :mix_shell , :info , [ "Compiled lib/z.ex" ] }
878- refute_received { :mix_shell , :info , [ "Compiled lib/a.ex" ] }
879- refute_received { :mix_shell , :info , [ "Compiled lib/b.ex" ] }
880-
881- assert File . regular? ( "_build/dev/lib/sample/ebin/Elixir.Z.beam" )
882- end )
883- end
884-
885858 test "recompiles dependent changed modules" do
886859 in_fixture ( "no_mixfile" , fn ->
887860 Mix.Project . push ( MixTest.Case.Sample )
You can’t perform that action at this time.
0 commit comments