summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2017-02-10 09:45:42 +0000
committerw0rp <devw0rp@gmail.com>2017-02-10 09:45:42 +0000
commitc528ab1eaa2fa951bde708a094274a4a05e03ebb (patch)
tree2d20af04305de6a47420af6d82d94df7177d60ca /test
parent5bda8271437dd24e4af52580b3e0fe236c2bbd95 (diff)
downloadale-c528ab1eaa2fa951bde708a094274a4a05e03ebb.zip
Fix #269 Set $TMPDIR to a default value, if not set
Diffstat (limited to 'test')
-rw-r--r--test/test_tmpdir_init.vader2
-rw-r--r--test/vimrc4
2 files changed, 6 insertions, 0 deletions
diff --git a/test/test_tmpdir_init.vader b/test/test_tmpdir_init.vader
new file mode 100644
index 00000000..68bb2b43
--- /dev/null
+++ b/test/test_tmpdir_init.vader
@@ -0,0 +1,2 @@
+Execute($TMPDIR should be set to a default value if unset):
+ AssertEqual '/tmp', $TMPDIR
diff --git a/test/vimrc b/test/vimrc
index 77be5e29..ef678848 100644
--- a/test/vimrc
+++ b/test/vimrc
@@ -20,3 +20,7 @@ set foldnestmax=10
set ttimeoutlen=0
let g:mapleader=','
+
+" Clear the TMPDIR value for tests.
+" The plugin should set this to /tmp by default, which we will test.
+let $TMPDIR = ''