aboutsummaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authormerakor <cem@ckyln.com>2021-11-03 12:46:07 +0000
committermerakor <cem@ckyln.com>2021-11-03 12:46:07 +0000
commit8ee7bc5d4e647baaac8182278e789a5d844d3db9 (patch)
tree58a308829a7c46a0cead7179820df07fe73a7ffe /spec
parent3288d9f38b35e02b75d74d3fc55fe6e405879348 (diff)
downloadcpt-8ee7bc5d4e647baaac8182278e789a5d844d3db9.tar.gz
tests: remove unneeded hook tests
FossilOrigin-Name: 1599e58bc8a7e85fee6400d249d9f53e4eb42e407e04e369d45240e6f3307e51
Diffstat (limited to 'spec')
-rw-r--r--spec/01_lib_spec.sh14
1 files changed, 0 insertions, 14 deletions
diff --git a/spec/01_lib_spec.sh b/spec/01_lib_spec.sh
index ebf7f66..c9a30db 100644
--- a/spec/01_lib_spec.sh
+++ b/spec/01_lib_spec.sh
@@ -165,12 +165,6 @@ Describe 'CPT Library'
The stderr should eq "-> Running 2 hook"
The output should eq "$CPT_HOOK 2 null destination"
End
- It "uses the /etc/cpt-hook file of the root when called with a fourth arg"
- When call run_hook 3 cpt destdir root
- The stderr should eq "-> cpt Running 3 hook"
- The output should eq "$CPT_ROOT/etc/cpt-hook 3 cpt destdir"
- The variable CPT_HOOK should eq "$PWD/tests/hook-file"
- End
It "returns with success even when the file doesn't exist"
CPT_HOOK=$PWD/some-non-existent-file
When call run_hook 4 thiswillnotrun
@@ -178,14 +172,6 @@ Describe 'CPT Library'
The stderr should eq ""
The status should be success
End
- It "restores the \$CPT_HOOK variable when called with root"
- CPT_ROOT=$PWD/nonexistentdir
- When call run_hook 5 cpt dest root
- The variable CPT_ROOT should not be exist
- The stderr should eq ""
- The status should be success
- The variable CPT_HOOK should eq "$PWD/tests/hook-file"
- End
End
Describe 'create_tmp()'
After pkg_clean