diff options
Diffstat (limited to 'test/functional/plugin/shada_spec.lua')
-rw-r--r-- | test/functional/plugin/shada_spec.lua | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/test/functional/plugin/shada_spec.lua b/test/functional/plugin/shada_spec.lua index 778dc4e219..c0104a58f7 100644 --- a/test/functional/plugin/shada_spec.lua +++ b/test/functional/plugin/shada_spec.lua @@ -1,4 +1,3 @@ -local paths = require('test.config.paths') local helpers = require('test.functional.helpers')(after_each) local clear = helpers.clear local eq, nvim_eval, nvim_command, nvim, exc_exec, funcs, nvim_feed, curbuf = @@ -13,14 +12,8 @@ local shada_helpers = require('test.functional.shada.helpers') local get_shada_rw = shada_helpers.get_shada_rw local function reset(shada_file) - -- TODO(justinmk): why is this needed? - local rtp_value = ('\'%s/runtime\''):format( - paths.test_source_path:gsub('\'', '\'\'')) - clear{args_rm={'-u', '-i'}, - args={'-u', 'NORC', + clear{ args={'-u', 'NORC', '-i', shada_file or 'NONE', - '--cmd', 'set laststatus&', - '--cmd', 'let &runtimepath='..rtp_value, }} end @@ -2554,6 +2547,7 @@ describe('syntax/shada.vim', function() it('works', function() nvim_command('syntax on') nvim_command('setlocal syntax=shada') + nvim_command('set laststatus&') curbuf('set_lines', 0, 1, true, { 'Header with timestamp ' .. epoch .. ':', ' % Key Value', @@ -2890,4 +2884,3 @@ describe('syntax/shada.vim', function() eq(exp, act) end) end) - |