pashage

Yet Another Opinionated Re-engineering of the Unix Password Store
git clone https://git.instinctive.eu/pashage.git
Log | Files | Refs | README | LICENSE

commit 0e52aa802ce12b127915c7b4189008624074ef9a
parent 5ca2713b2fdfec612275d55ba6e8ff4673bf3281
Author: Natasha Kerensikova <natgh@instinctive.eu>
Date:   Tue, 29 Oct 2024 18:07:29 +0000

Git command is fully covered by integrated suites
Diffstat:
Mspec/pashage_extra_spec.sh | 37++++++++++++++++++++++++++++++++++++-
1 file changed, 36 insertions(+), 1 deletion(-)

diff --git a/spec/pashage_extra_spec.sh b/spec/pashage_extra_spec.sh @@ -388,7 +388,42 @@ Describe 'Integrated Command Functions' End End -# Describe 'cmd_git' + Describe 'cmd_git' + It 'initializes a clone like a new repository' + SOURCE="${PREFIX}" + PREFIX="${SHELLSPEC_WORKDIR}/clone" + expected_err() { %text:expand + #|Cloning into '${PREFIX}'... + #|done. + } + When call cmd_git clone "${SOURCE}" + The status should be success + The output should be blank + The error should equal "$(expected_err)" + The file "${PREFIX}/.gitattributes" should be exist + The contents of file "${PREFIX}/.gitattributes" should equal \ + '*.age diff=age' + expected_log() { %text + #|Configure git repository for age file diff. + #| + #| .gitattributes | 1 + + #| 1 file changed, 1 insertion(+) + #|Initial setup + #| + #| extra/subdir/file.age | Bin 0 -> 33 bytes + #| fluff/.age-recipients | 2 ++ + #| fluff/one.age | Bin 0 -> 55 bytes + #| fluff/three.age | Bin 0 -> 110 bytes + #| fluff/two.age | Bin 0 -> 90 bytes + #| shared/.age-recipients | 2 ++ + #| stale.age | Bin 0 -> 55 bytes + #| subdir/file.age | Bin 0 -> 33 bytes + #| 8 files changed, 4 insertions(+) + } + The result of function check_git_log should be successful + End + End + # Describe 'cmd_grep' # Describe 'cmd_gitconfig' # Describe 'cmd_help'