aboutsummaryrefslogtreecommitdiff
path: root/test/functional/eval/execute_spec.lua
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2018-02-07 09:57:23 +0100
committerGitHub <noreply@github.com>2018-02-07 09:57:23 +0100
commit366528130e397a6173789072c08b9afa5efd0423 (patch)
treed41bd3f486d87842fa65108a072de465e2dee4bf /test/functional/eval/execute_spec.lua
parent538361955d123d9c93387f7597303c0ef59c6825 (diff)
parent35a789278128bfe5d28e4c61ac7fa727042fd30a (diff)
downloadrneovim-366528130e397a6173789072c08b9afa5efd0423.tar.gz
rneovim-366528130e397a6173789072c08b9afa5efd0423.tar.bz2
rneovim-366528130e397a6173789072c08b9afa5efd0423.zip
Merge #6713 'tests for :! output'
Diffstat (limited to 'test/functional/eval/execute_spec.lua')
-rw-r--r--test/functional/eval/execute_spec.lua5
1 files changed, 2 insertions, 3 deletions
diff --git a/test/functional/eval/execute_spec.lua b/test/functional/eval/execute_spec.lua
index c866359520..183884a51e 100644
--- a/test/functional/eval/execute_spec.lua
+++ b/test/functional/eval/execute_spec.lua
@@ -1,5 +1,4 @@
local helpers = require('test.functional.helpers')(after_each)
-local global_helpers = require('test.helpers')
local eq = helpers.eq
local eval = helpers.eval
local clear = helpers.clear
@@ -10,7 +9,7 @@ local funcs = helpers.funcs
local Screen = require('test.functional.ui.screen')
local command = helpers.command
local feed = helpers.feed
-local uname = global_helpers.uname
+local iswin = helpers.iswin
describe('execute()', function()
before_each(clear)
@@ -123,7 +122,7 @@ describe('execute()', function()
-- This deviates from vim behavior, but is consistent
-- with how nvim currently displays the output.
it('does capture shell-command output', function()
- local win_lf = (uname() == 'Windows' and '\13') or ''
+ local win_lf = iswin() and '\13' or ''
eq('\n:!echo foo\r\n\nfoo'..win_lf..'\n', funcs.execute('!echo foo'))
end)