aboutsummaryrefslogtreecommitdiff
path: root/test/functional/core
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2019-09-06 17:17:37 -0700
committerJustin M. Keyes <justinkz@gmail.com>2019-09-06 17:19:07 -0700
commit7e1c9598617a140e40a0a22676c0631294617246 (patch)
treee6988da22f16062b57d50daeda084bcc489a6a1d /test/functional/core
parentaf946046b922dc5d5285a70a23d11916d8389a5d (diff)
downloadrneovim-7e1c9598617a140e40a0a22676c0631294617246.tar.gz
rneovim-7e1c9598617a140e40a0a22676c0631294617246.tar.bz2
rneovim-7e1c9598617a140e40a0a22676c0631294617246.zip
test: Eliminate expect_err
Eliminate `expect_err` in favor of `pcall_err` + `eq` or `matches`.
Diffstat (limited to 'test/functional/core')
-rw-r--r--test/functional/core/job_spec.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/functional/core/job_spec.lua b/test/functional/core/job_spec.lua
index 94b34ef05b..b745eb67ef 100644
--- a/test/functional/core/job_spec.lua
+++ b/test/functional/core/job_spec.lua
@@ -17,7 +17,7 @@ local pathroot = helpers.pathroot
local nvim_set = helpers.nvim_set
local expect_twostreams = helpers.expect_twostreams
local expect_msg_seq = helpers.expect_msg_seq
-local expect_err = helpers.expect_err
+local pcall_err = helpers.pcall_err
local Screen = require('test.functional.ui.screen')
-- Kill process with given pid
@@ -122,8 +122,8 @@ describe('jobs', function()
local dir = 'Xtest_not_executable_dir'
mkdir(dir)
funcs.setfperm(dir, 'rw-------')
- expect_err('E475: Invalid argument: expected valid directory$', nvim,
- 'command', "call jobstart('pwd', {'cwd': '" .. dir .. "'})")
+ eq('Vim(call):E475: Invalid argument: expected valid directory',
+ pcall_err(nvim, 'command', "call jobstart('pwd', {'cwd': '"..dir.."'})"))
rmdir(dir)
end)