From 354d852d7218bbd36c1190aa737e8ba87b8bf4d8 Mon Sep 17 00:00:00 2001 From: Michael Aquilina Date: Mon, 15 Jul 2019 20:54:48 +0100 Subject: [PATCH] Add test to check version export --- tests/test_auto_notify.zunit | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/test_auto_notify.zunit b/tests/test_auto_notify.zunit index 8d6d1c3..f461e2d 100644 --- a/tests/test_auto_notify.zunit +++ b/tests/test_auto_notify.zunit @@ -22,7 +22,11 @@ } @test 'version exported' { + git_version="$(git tag --list | sort -V | tail -1)" + git tag --list + assert "$AUTO_NOTIFY_VERSION" is_not_empty + assert "$AUTO_NOTIFY_VERSION" same_as "$git_version" } @test 'hook functions are loaded by default' {