From 05d0a0cc832ff68e7dfa43ec722a7e4d43cc1db2 Mon Sep 17 00:00:00 2001 From: Micah Jerome Ellison Date: Sat, 17 Oct 2020 15:38:06 -0700 Subject: [PATCH] Fix version number test failing on lack of patch version after change to 2.5 --- features/core.feature | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/features/core.feature b/features/core.feature index dc78a7a3..0861f231 100644 --- a/features/core.feature +++ b/features/core.feature @@ -4,13 +4,13 @@ Feature: Functionality of jrnl outside of actually handling journals Given we use the config "simple.yaml" When we run "jrnl --version" Then we should get no error - Then the output should match "^jrnl version v\d+\.\d+\.\d+(-(alpha|beta))?$" + Then the output should match "^jrnl version v\d+\.\d+(\.\d+)?(-(alpha|beta))?$" Scenario: Displaying the version number Given we use the config "simple.yaml" When we run "jrnl -v" Then we should get no error - Then the output should match "^jrnl version v\d+\.\d+\.\d+(-(alpha|beta))?$" + Then the output should match "^jrnl version v\d+\.\d+(\.\d+)?(-(alpha|beta))?$" Scenario: Running the diagnostic command When we run "jrnl --diagnostic"