diff --git a/CHANGELOG.md b/CHANGELOG.md index 04370c8f..80c1980b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ ## [Unreleased](https://github.com/TypedDevs/bashunit/compare/0.12.0...main) - Allow calling assertions standalone outside tests +- Add the latest version when installing beta - Add `assert_line_count` ## [0.12.0](https://github.com/TypedDevs/bashunit/compare/0.11.0...0.12.0) - 2024-06-11 diff --git a/install.sh b/install.sh index 367476a0..0432060a 100755 --- a/install.sh +++ b/install.sh @@ -27,7 +27,7 @@ function build_and_install_beta() { cd .. local beta_version - beta_version='(non-stable) beta ['"$(date +'%Y-%m-%d')"']' + beta_version='(non-stable) beta after '"$LATEST_BASHUNIT_VERSION"' ['"$(date +'%Y-%m-%d')"']' sed -i -e 's/BASHUNIT_VERSION=".*"/BASHUNIT_VERSION="'"$beta_version"'"/g' temp_bashunit/bin/bashunit cp temp_bashunit/bin/bashunit ./ diff --git a/tests/acceptance/install_test.sh b/tests/acceptance/install_test.sh index 6edde55a..65cae5f5 100644 --- a/tests/acceptance/install_test.sh +++ b/tests/acceptance/install_test.sh @@ -64,8 +64,8 @@ function test_install_downloads_the_non_stable_beta_version() { "$(printf "> Downloading non-stable version: 'beta'\n> bashunit has been installed in the 'deps' folder")"\ "$output" assert_file_exists "$installed_bashunit" - assert_equals\ - "$(printf "\e[1m\e[32mbashunit\e[0m - (non-stable) beta [2023-11-13]")"\ + assert_matches\ + "$(printf "\(non-stable\) beta after ([0-9]+\.[0-9]+\.[0-9]+) \[2023-11-13\]")"\ "$("$installed_bashunit" --env "$TEST_ENV_FILE" --version)" assert_directory_not_exists "./deps/temp_bashunit" file_count_of_deps_directory=$(find ./deps -mindepth 1 -maxdepth 1 -print | wc -l | tr -d ' ')