@@ -55,22 +55,9 @@ defmodule Mix.Tasks.CompileTest do
5555 assert_received { :mix_shell , :info , [ "Generated sample app" ] }
5656 assert File . regular? ( "_build/dev/lib/sample/consolidated/Elixir.Enumerable.beam" )
5757
58- # Noop
5958 Mix.Task . clear ( )
6059 assert Mix.Task . run ( "compile" , [ "--verbose" ] ) == { :noop , [ ] }
6160 refute_received { :mix_shell , :info , [ "Compiled lib/a.ex" ] }
62-
63- # Consolidates protocols if manifest is out of date
64- File . rm ( "_build/dev/lib/sample/.mix/compile.protocols" )
65- Mix.Task . clear ( )
66- assert Mix.Task . run ( "compile" , [ "--verbose" ] ) == { :ok , [ ] }
67- refute_received { :mix_shell , :info , [ "Compiled lib/a.ex" ] }
68- assert File . regular? ( "_build/dev/lib/sample/consolidated/Elixir.Enumerable.beam" )
69-
70- # Purge so consolidated is picked up
71- purge ( [ Enumerable ] )
72- assert Mix.Tasks.App.Start . run ( [ "--verbose" ] ) == :ok
73- assert Protocol . consolidated? ( Enumerable )
7461 end )
7562 end
7663
@@ -224,10 +211,10 @@ defmodule Mix.Tasks.CompileTest do
224211 end )
225212 end
226213
227- test "skip protocol consolidation when --no-consolidate-protocols " do
214+ test "skip protocol consolidation when --no-protocol-consolidation " do
228215 in_fixture ( "no_mixfile" , fn ->
229216 File . rm ( "_build/dev/lib/sample/.mix/compile.protocols" )
230- assert Mix.Task . run ( "compile" , [ "--no-consolidate-protocols " ] ) == { :ok , [ ] }
217+ assert Mix.Task . run ( "compile" , [ "--no-protocol-consolidation " ] ) == { :ok , [ ] }
231218 assert File . regular? ( "_build/dev/lib/sample/ebin/Elixir.A.beam" )
232219 refute File . regular? ( "_build/dev/lib/sample/consolidated/Elixir.Enumerable.beam" )
233220 end )
@@ -283,7 +270,7 @@ defmodule Mix.Tasks.CompileTest do
283270 Mix.Project . push ( WrongPath )
284271
285272 ExUnit.CaptureIO . capture_io ( fn ->
286- assert Mix.Task . run ( "compile" , [ "--no-consolidate-protocols " ] ) == { :noop , [ ] }
273+ assert Mix.Task . run ( "compile" , [ "--no-protocol-consolidation " ] ) == { :noop , [ ] }
287274 end )
288275 end
289276
0 commit comments