From c73369c07f7a21701b5f4801081a92602bda81ca Mon Sep 17 00:00:00 2001 From: merakor Date: Mon, 12 Apr 2021 12:46:00 +0000 Subject: spec: update tests for create_tmp() FossilOrigin-Name: 77edf9484c87a1c8eb70aea3ebb05d9440a062926464123ad5f34abef952f13a --- spec/01_lib_spec.sh | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'spec') diff --git a/spec/01_lib_spec.sh b/spec/01_lib_spec.sh index 38eff6e..c90eac1 100644 --- a/spec/01_lib_spec.sh +++ b/spec/01_lib_spec.sh @@ -186,16 +186,12 @@ Describe 'CPT Library' The variable CPT_HOOK should eq "$PWD/tests/hook-file" End End - Describe 'create_cache()' + Describe 'create_tmp()' After pkg_clean It 'creates cache directories' - When call create_cache + When call create_tmp The variable mak_dir should be a directory End - It "doesn't create build directories if an argument is passed" - When call create_cache nobuild - The variable mak_dir should be undefined - End End Describe 'pkg_get_base()' CPT_ROOT=$PWD/tests -- cgit v1.2.3