mirror of
https://github.com/jorgebucaran/fisher
synced 2024-08-17 12:31:05 +02:00
23 lines
387 B
Fish
23 lines
387 B
Fish
|
set -l path $DIRNAME/.t-$TESTNAME-(random)
|
||
|
|
||
|
function -S setup
|
||
|
mkdir -p $path
|
||
|
|
||
|
echo "function foo; end" > $path/foo.fish
|
||
|
source $path/foo.fish
|
||
|
|
||
|
__fisher_plugin_unlink foo $path/foo.fish
|
||
|
end
|
||
|
|
||
|
function -S teardown
|
||
|
rm -rf $path
|
||
|
end
|
||
|
|
||
|
test "$TESTNAME - Delete / Unlink file"
|
||
|
! -e $path/foo.fish
|
||
|
end
|
||
|
|
||
|
test "$TESTNAME - Erase function by name"
|
||
|
-z (functions foo)
|
||
|
end
|