mirror of https://github.com/jorgebucaran/fisher
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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
|