functests: Test invalid behaviour

Test correctly fail for oneline ruby, python and python3.
This commit is contained in:
ZyX
2017-05-12 20:03:05 +03:00
parent d9023b84e6
commit 8b171b8c50
5 changed files with 95 additions and 10 deletions

View File

@@ -10,13 +10,11 @@ local expect = helpers.expect
local command = helpers.command
local write_file = helpers.write_file
local curbufmeths = helpers.curbufmeths
local check_provider = helpers.check_provider
do
clear()
command('let g:prog = provider#ruby#Detect()')
local prog = meths.get_var('prog')
if prog == '' then
if not check_provider('ruby') then
pending(
"Cannot find the neovim RubyGem. Try :CheckHealth",
function() end)