mirror of
https://github.com/jorgebucaran/fisher
synced 2024-11-09 07:10:27 +00:00
19 lines
444 B
Fish
19 lines
444 B
Fish
|
set -l path $DIRNAME/.t-$TESTNAME-(random)
|
||
|
|
||
|
function -S setup
|
||
|
mkdir -p $path/foo/conf.d
|
||
|
touch $path/foo/conf.d/foo.fish
|
||
|
end
|
||
|
|
||
|
function -S teardown
|
||
|
rm -rf $path
|
||
|
end
|
||
|
|
||
|
test "$TESTNAME - Evaluate files inside conf.d"
|
||
|
(__fisher_plugin_walk foo $path/foo | awk '{ print $1 }') = "--source"
|
||
|
end
|
||
|
|
||
|
test "$TESTNAME - Move files inside conf.d to conf.d"
|
||
|
(__fisher_plugin_walk foo $path/foo | awk '{ print $3 }') = "conf.d/foo.fish"
|
||
|
end
|