From 139efca697ff2d3d7f5e9f444414b24c5437d40d Mon Sep 17 00:00:00 2001 From: Jorge Bucaran Date: Thu, 4 Feb 2016 14:05:01 +0900 Subject: [PATCH] Add tests for __fisher_plugin_source. --- test/plugin-source.fish | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 test/plugin-source.fish diff --git a/test/plugin-source.fish b/test/plugin-source.fish new file mode 100644 index 0000000..0feaaaa --- /dev/null +++ b/test/plugin-source.fish @@ -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