aboutsummaryrefslogtreecommitdiff
path: root/test/functional/api/vim_spec.lua
diff options
context:
space:
mode:
authorThiago de Arruda <tpadilha84@gmail.com>2016-03-07 15:20:16 -0300
committerThiago de Arruda <tpadilha84@gmail.com>2016-03-07 15:20:16 -0300
commit37b3a4c607a1305ce56e96837e305fd637fde0e8 (patch)
tree2b825e07c89d31557b4e6c6c6dcff029de6a5ded /test/functional/api/vim_spec.lua
parentbd81239f2f98e46f8565c7d80d586381881e78b4 (diff)
parent6674930d7c15e30b6110c4ff2489dd30985969e6 (diff)
downloadrneovim-37b3a4c607a1305ce56e96837e305fd637fde0e8.tar.gz
rneovim-37b3a4c607a1305ce56e96837e305fd637fde0e8.tar.bz2
rneovim-37b3a4c607a1305ce56e96837e305fd637fde0e8.zip
Merge PR #4423 'Make functional tests compatible with lua'
Diffstat (limited to 'test/functional/api/vim_spec.lua')
-rw-r--r--test/functional/api/vim_spec.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/functional/api/vim_spec.lua b/test/functional/api/vim_spec.lua
index 9c9759adf6..99f67fe43a 100644
--- a/test/functional/api/vim_spec.lua
+++ b/test/functional/api/vim_spec.lua
@@ -3,7 +3,7 @@ local helpers = require('test.functional.helpers')
local Screen = require('test.functional.ui.screen')
local clear, nvim, eq, neq = helpers.clear, helpers.nvim, helpers.eq, helpers.neq
local ok, nvim_async, feed = helpers.ok, helpers.nvim_async, helpers.feed
-local os_is_windows = helpers.os_is_windows
+local os_name = helpers.os_name
describe('vim_* functions', function()
before_each(clear)
@@ -17,7 +17,7 @@ describe('vim_* functions', function()
nvim('command', 'w')
local f = io.open(fname)
ok(f ~= nil)
- if os_is_windows() then
+ if os_name() == 'windows' then
eq('testing\r\napi\r\n', f:read('*a'))
else
eq('testing\napi\n', f:read('*a'))