1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
local helpers = require('test.functional.helpers')(after_each)
local clear, eq, feed_command, eval = helpers.clear, helpers.eq, helpers.feed_command, helpers.eval
describe('Providers', function()
before_each(function()
clear('--cmd', 'let &rtp = "test/functional/fixtures,".&rtp')
end)
it('must set the enabled variable or fail', function()
eq(42, eval("provider#brokenenabled#Call('dosomething', [])"))
feed_command("call has('brokenenabled')")
eq(0, eval("has('brokenenabled')"))
end)
it('without Call() are enabled', function()
eq(1, eval("has('brokencall')"))
end)
end)
|