diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2019-08-04 12:37:05 +0200 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2019-08-04 13:23:46 +0200 |
commit | 2141dc22625f73f3ce73460e581934b94f141cf9 (patch) | |
tree | 71167260e69f87566391af2b1a8924987e6fe1d7 /test/functional/provider/provider_spec.lua | |
parent | e952b7fc2f9838441308d1f71b98f108ae5faa8a (diff) | |
download | rneovim-2141dc22625f73f3ce73460e581934b94f141cf9.tar.gz rneovim-2141dc22625f73f3ce73460e581934b94f141cf9.tar.bz2 rneovim-2141dc22625f73f3ce73460e581934b94f141cf9.zip |
provider: check #Call() if g:loaded_xx_provider=2
Diffstat (limited to 'test/functional/provider/provider_spec.lua')
-rw-r--r-- | test/functional/provider/provider_spec.lua | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/test/functional/provider/provider_spec.lua b/test/functional/provider/provider_spec.lua index 4220ec21cf..bfb0bbc3a3 100644 --- a/test/functional/provider/provider_spec.lua +++ b/test/functional/provider/provider_spec.lua @@ -1,6 +1,6 @@ local helpers = require('test.functional.helpers')(after_each) -local clear, eq, eval = helpers.clear, helpers.eq, helpers.eval +local clear, eval = helpers.clear, helpers.eval local command = helpers.command local expect_err = helpers.expect_err @@ -9,7 +9,7 @@ describe('providers', function() clear('--cmd', 'let &rtp = "test/functional/fixtures,".&rtp') end) - it('must define g:loaded_xx_provider', function() + it('with #Call(), missing g:loaded_xx_provider', function() command('set loadplugins') -- Using test-fixture with broken impl: -- test/functional/fixtures/autoload/provider/python.vim @@ -17,9 +17,10 @@ describe('providers', function() eval, "has('python')") end) - it('without Call() but with g:loaded_xx_provider', function() + it('with g:loaded_xx_provider, missing #Call()', function() -- Using test-fixture with broken impl: -- test/functional/fixtures/autoload/provider/ruby.vim - eq(1, eval("has('ruby')")) + expect_err('Vim:provider: ruby: g:loaded_ruby_provider=2 but provider#ruby#Call is not defined', + eval, "has('ruby')") end) end) |