mirror of
https://github.com/jorgebucaran/fisher
synced 2024-09-10 15:07:40 +02:00
Add tests for __fisher_plugin_source.
This commit is contained in:
parent
5d3f98b07a
commit
a29966f48d
1 changed files with 14 additions and 0 deletions
14
test/plugin-source.fish
Normal file
14
test/plugin-source.fish
Normal file
|
@ -0,0 +1,14 @@
|
|||
set -l path $DIRNAME/.t-$TESTNAME-(random)
|
||||
|
||||
function -S setup
|
||||
mkdir $path
|
||||
echo "echo ok" > $path/foo.fish
|
||||
end
|
||||
|
||||
function -S teardown
|
||||
rm -rf $path
|
||||
end
|
||||
|
||||
test "$TESTNAME - Evaluate file in given path"
|
||||
"ok" = (__fisher_plugin_source foo $path/foo.fish)
|
||||
end
|
Loading…
Reference in a new issue