diff options
author | Jan Edmund Lazo <janedmundlazo@hotmail.com> | 2017-10-19 17:26:03 -0400 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2018-01-06 17:47:00 +0100 |
commit | 7311fb7cadff49422a15d3a40d7014000c8f4385 (patch) | |
tree | f3f255af453c61f3db12ec465b77fc75abe899ef /test/functional/options/autochdir_spec.lua | |
parent | e9b5616eaf49755c972bcc46719f985f9ca1e15f (diff) | |
download | rneovim-7311fb7cadff49422a15d3a40d7014000c8f4385.tar.gz rneovim-7311fb7cadff49422a15d3a40d7014000c8f4385.tar.bz2 rneovim-7311fb7cadff49422a15d3a40d7014000c8f4385.zip |
win: enable more functional tests
- plugin/shada_spec.lua: Use \r\n as Windows EOL for tests on
BufWriteCmd, FileWriteCmd, FileAppendCmd. Alternative is 'set
fileformat=unix'.
Diffstat (limited to 'test/functional/options/autochdir_spec.lua')
-rw-r--r-- | test/functional/options/autochdir_spec.lua | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/test/functional/options/autochdir_spec.lua b/test/functional/options/autochdir_spec.lua index 209531515c..2fce0a5ed9 100644 --- a/test/functional/options/autochdir_spec.lua +++ b/test/functional/options/autochdir_spec.lua @@ -3,8 +3,6 @@ local clear = helpers.clear local eq = helpers.eq local getcwd = helpers.funcs.getcwd -if helpers.pending_win32(pending) then return end - describe("'autochdir'", function() it('given on the shell gets processed properly', function() local targetdir = 'test/functional/fixtures' @@ -12,9 +10,10 @@ describe("'autochdir'", function() -- By default 'autochdir' is off, thus getcwd() returns the repo root. clear(targetdir..'/tty-test.c') local rootdir = getcwd() + local expected = rootdir .. '/' .. targetdir -- With 'autochdir' on, we should get the directory of tty-test.c. clear('--cmd', 'set autochdir', targetdir..'/tty-test.c') - eq(rootdir..'/'..targetdir, getcwd()) + eq(helpers.iswin() and expected:gsub('/', '\\') or expected, getcwd()) end) end) |