Skip to content

Commit 082af1c

Browse files
author
José Valim
committed
Reduce the amount of fixture files in mix
1 parent dc9caf4 commit 082af1c

File tree

7 files changed

+4
-14
lines changed

7 files changed

+4
-14
lines changed
Binary file not shown.

lib/mix/test/fixtures/beams/local.sample.ex

Lines changed: 0 additions & 10 deletions
This file was deleted.

lib/mix/test/fixtures/extract/lib/.hidden.ex

Whitespace-only changes.

lib/mix/test/fixtures/extract/lib/a.ex

Whitespace-only changes.

lib/mix/test/mix/tasks/compile_test.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ defmodule Mix.Tasks.CompileTest do
4040
end
4141

4242
test "compile is no-op on empty project" do
43-
in_fixture "beams", fn ->
43+
in_fixture "deps_status", fn ->
4444
Mix.Tasks.Compile.run []
4545
refute File.exists?("ebin")
4646
end

lib/mix/test/mix/tasks/local_test.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ defmodule Mix.Tasks.LocalTest do
6565
Mix.Local.append_paths
6666

6767
# Install on MIX_PATH manually
68-
File.copy! fixture_path("beams/Elixir.Mix.Tasks.Local.Sample.beam"),
68+
File.copy! fixture_path("archive/ebin/Elixir.Mix.Tasks.Local.Sample.beam"),
6969
tmp_path("mixpath/ebin/Elixir.Mix.Tasks.Local.Sample.beam")
7070

7171
# Run it

lib/mix/test/mix/utils_test.exs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,9 @@ defmodule Mix.UtilsTest do
6565
end
6666

6767
test :extract_files do
68-
files = Mix.Utils.extract_files [Path.join(fixture_path, "extract")], "*.ex"
68+
files = Mix.Utils.extract_files [Path.join(fixture_path, "archive")], "*.ex"
6969
assert length(files) == 1
70-
assert Path.basename(hd(files)) == "a.ex"
70+
assert Path.basename(hd(files)) == "local.sample.ex"
7171
end
7272

7373
test :extract_stale do

0 commit comments

Comments
 (0)