diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2019-08-04 12:20:30 +0200 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2019-08-04 13:23:46 +0200 |
commit | 5e6a08f2e6b21e83c9fb381042f0aed89de4598d (patch) | |
tree | f219b253e9543c31e4792394a110c089db766895 /test/functional/provider/provider_spec.lua | |
parent | 241956720d02d933b0b27097a3b0a1966f138d0b (diff) | |
download | rneovim-5e6a08f2e6b21e83c9fb381042f0aed89de4598d.tar.gz rneovim-5e6a08f2e6b21e83c9fb381042f0aed89de4598d.tar.bz2 rneovim-5e6a08f2e6b21e83c9fb381042f0aed89de4598d.zip |
provider: skip non-provider has() feature-names
We don't want to retry autoload sourcing (slow) for every random has()
query that finds it way to eval_call_provider().
Diffstat (limited to 'test/functional/provider/provider_spec.lua')
-rw-r--r-- | test/functional/provider/provider_spec.lua | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/test/functional/provider/provider_spec.lua b/test/functional/provider/provider_spec.lua index b690cf2566..4220ec21cf 100644 --- a/test/functional/provider/provider_spec.lua +++ b/test/functional/provider/provider_spec.lua @@ -11,11 +11,15 @@ describe('providers', function() it('must define g:loaded_xx_provider', function() command('set loadplugins') - expect_err('Vim:provider: brokenenabled: missing required variable g:loaded_brokenenabled_provider', - eval, "has('brokenenabled')") + -- Using test-fixture with broken impl: + -- test/functional/fixtures/autoload/provider/python.vim + expect_err('Vim:provider: python: missing required variable g:loaded_python_provider', + eval, "has('python')") end) it('without Call() but with g:loaded_xx_provider', function() - eq(1, eval("has('brokencall')")) + -- Using test-fixture with broken impl: + -- test/functional/fixtures/autoload/provider/ruby.vim + eq(1, eval("has('ruby')")) end) end) |