From 8acb2d12d0d07fcb8eeb2eef71d331cb32465887 Mon Sep 17 00:00:00 2001 From: Pierre Cavin Date: Thu, 2 May 2024 15:19:25 +0200 Subject: [PATCH] style: rename version module attribute in tests --- test/nodelix_test.exs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/test/nodelix_test.exs b/test/nodelix_test.exs index 73013b3..e690142 100644 --- a/test/nodelix_test.exs +++ b/test/nodelix_test.exs @@ -1,7 +1,7 @@ defmodule NodelixTest do use ExUnit.Case, async: true - @version Nodelix.VersionManager.latest_lts_version() + @latest_lts_version Nodelix.VersionManager.latest_lts_version() setup_all do File.rm_rf!(Path.join([Mix.Project.build_path(), "nodejs"])) @@ -11,13 +11,13 @@ defmodule NodelixTest do test "run without profile" do assert ExUnit.CaptureIO.capture_io(fn -> assert Mix.Task.rerun("nodelix", ["--version"]) == :ok - end) =~ @version + end) =~ @latest_lts_version end test "run on another profile" do assert ExUnit.CaptureIO.capture_io(fn -> assert Mix.Task.rerun("nodelix", ["--profile", "test_profile"]) == :ok - end) =~ @version + end) =~ @latest_lts_version end test "installs and runs multiple versions" do @@ -27,13 +27,13 @@ defmodule NodelixTest do assert ExUnit.CaptureIO.capture_io(fn -> assert Mix.Task.rerun("nodelix", ["--version"]) == :ok - end) =~ @version + end) =~ @latest_lts_version end test "re-installs with force flag" do assert ExUnit.CaptureLog.capture_log(fn -> assert Mix.Task.rerun("nodelix.install", ["--force"]) == :ok - end) =~ "Succesfully installed Node.js v#{@version}" + end) =~ "Succesfully installed Node.js v#{@latest_lts_version}" end test "installs with custom URL" do