Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sheerlox committed Nov 27, 2023
1 parent fe4cade commit 9978f67
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion config/config.exs
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ import Config
config :nodelix,
version: "20.10.0",
another: [
args: ["--help"]
args: ["--version"]
]
6 changes: 3 additions & 3 deletions test/nodelix_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ defmodule NodelixTest do

test "run on default" do
assert ExUnit.CaptureIO.capture_io(fn ->
assert Nodelix.run(:default, ["--help"]) == 0
assert Nodelix.run(:default, ["--version"]) == 0
end) =~ @version
end

Expand All @@ -25,15 +25,15 @@ defmodule NodelixTest do
Mix.Task.rerun("nodelix.install", ["--if-missing"])

assert ExUnit.CaptureIO.capture_io(fn ->
assert Nodelix.run(:default, ["--help"]) == 0
assert Nodelix.run(:default, ["--version"]) == 0
end) =~ "20.9.0"

Application.delete_env(:nodelix, :version)

Mix.Task.rerun("nodelix.install", ["--if-missing"])

assert ExUnit.CaptureIO.capture_io(fn ->
assert Nodelix.run(:default, ["--help"]) == 0
assert Nodelix.run(:default, ["--version"]) == 0
end) =~ @version
end

Expand Down

0 comments on commit 9978f67

Please sign in to comment.