mirror of
https://github.com/jorgebucaran/fisher
synced 2024-08-17 12:31:05 +02: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
|