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.
fisher/test/plugin-walk-conf.d.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