Skip to content

Commit 8b0f91c

Browse files
committed
chore: fix tests
1 parent 31db3a5 commit 8b0f91c

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

test/mix/tasks/igniter.install_test.exs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,10 @@ defmodule Mix.Tasks.Igniter.InstallTest do
8181
cmd!("mix", ["deps.compile"], cd: "test_project")
8282
output = cmd!("mix", ["igniter.install", "jason", "--verbose"], cd: "test_project")
8383

84-
# each step names itself and passes its output through, rather than spinning
85-
assert output =~ "compile:"
84+
# each step names itself and passes its output through, rather than spinning.
85+
# only steps from `Igniter.Util.Install` are asserted on, because the steps
86+
# before it differ depending on whether the igniter_new archive is installed
87+
# and intercepts the task
8688
assert output =~ "fetching deps:"
8789
assert output =~ "compiling jason:"
8890
end

test/mix/tasks/igniter.phx.install_test.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ defmodule Mix.Tasks.Igniter.Phx.InstallTest do
88

99
test "create files" do
1010
igniter = Igniter.compose_task(test_project(), "igniter.phx.install", ["my_app"])
11-
assert Enum.count(igniter.rewrite.sources) == 49
11+
assert Enum.count(igniter.rewrite.sources) == 47
1212
end
1313

1414
test "inject config" do

0 commit comments

Comments
 (0)