diff options
author | ZyX <kp-pav@yandex.ru> | 2017-05-12 20:47:33 +0300 |
---|---|---|
committer | ZyX <kp-pav@yandex.ru> | 2017-05-13 03:06:50 +0300 |
commit | 19d38c4d0f98004e8b2c39821f9bee8ca7e2f5d2 (patch) | |
tree | 25cec426402655318116eea44967a4ed83b43e12 /test/functional/helpers.lua | |
parent | 50398e10fef8462a56266f2cedffd34d1b59d9bb (diff) | |
download | rneovim-19d38c4d0f98004e8b2c39821f9bee8ca7e2f5d2.tar.gz rneovim-19d38c4d0f98004e8b2c39821f9bee8ca7e2f5d2.tar.bz2 rneovim-19d38c4d0f98004e8b2c39821f9bee8ca7e2f5d2.zip |
functests: Replace check_provider -> missing_provider with err report
Diffstat (limited to 'test/functional/helpers.lua')
-rw-r--r-- | test/functional/helpers.lua | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/functional/helpers.lua b/test/functional/helpers.lua index 3ec4532cfe..b03840b3fe 100644 --- a/test/functional/helpers.lua +++ b/test/functional/helpers.lua @@ -566,14 +566,14 @@ local function get_pathsep() return funcs.fnamemodify('.', ':p'):sub(-1) end -local function check_provider(provider) +local function missing_provider(provider) if provider == 'ruby' then local prog = funcs['provider#' .. provider .. '#Detect']() - return prog ~= '' + return prog == '' and (provider .. ' not detected') or false elseif provider == 'python' or provider == 'python3' then local py_major_version = (provider == 'python3' and 3 or 2) local errors = funcs['provider#pythonx#Detect'](py_major_version)[2] - return errors == '' + return errors ~= '' and errors or false else assert(false, 'Unknown provider: ' .. provider) end @@ -645,7 +645,7 @@ local module = { meth_pcall = meth_pcall, NIL = mpack.NIL, get_pathsep = get_pathsep, - check_provider = check_provider, + missing_provider = missing_provider, } return function(after_each) |