diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2018-01-06 17:52:14 +0100 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2018-01-06 17:52:14 +0100 |
commit | 4fedad6c5b819fa91d4073c86d2d687e6c4d5ea4 (patch) | |
tree | db49b32ee4af66bfb29230af3853ac945210ebdd /test/functional/options/autochdir_spec.lua | |
parent | c82e7c75fe4c127a2886e22891794a9f12bff530 (diff) | |
parent | ab1e11e44fd17ffbd4c1fdb26c2b03de3c6831ae (diff) | |
download | rneovim-4fedad6c5b819fa91d4073c86d2d687e6c4d5ea4.tar.gz rneovim-4fedad6c5b819fa91d4073c86d2d687e6c4d5ea4.tar.bz2 rneovim-4fedad6c5b819fa91d4073c86d2d687e6c4d5ea4.zip |
Merge #7753 'win: enable more functional tests'
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) |