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.
22 lines
646 B
Fish
22 lines
646 B
Fish
set -l path $DIRNAME/.t-$TESTNAME-(random)
|
|
|
|
function -S setup
|
|
mkdir -p $path/foo
|
|
touch $path/foo/uninstall.fish
|
|
end
|
|
|
|
function -S teardown
|
|
rm -rf $path
|
|
end
|
|
|
|
test "$TESTNAME - Uninstall uninstall.fish files"
|
|
(__fisher_plugin_walk foo $path/foo | awk '{ print $1 }') = --uninstall
|
|
end
|
|
|
|
# The current approach consists of not moving uninstall.fish to $fisher_config/funtions and
|
|
# source it directly from its location $fisher_cache/<plugin> when <plugin> is uninstalled.
|
|
|
|
test "$TESTNAME - Return path to uninstall.fish in source directory"
|
|
(__fisher_plugin_walk foo $path/foo | awk '{ print $2 }') = $path/foo/uninstall.fish
|
|
end
|