mirror of
https://github.com/jorgebucaran/fisher
synced 2024-11-19 09:25:40 +00: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
|