diff options
author | Daniel Hahler <git@thequod.de> | 2019-08-06 13:07:05 +0200 |
---|---|---|
committer | Daniel Hahler <git@thequod.de> | 2019-08-07 12:47:21 +0200 |
commit | 4f148edd75cc9c82697b7303d3d11a52d1ce56c4 (patch) | |
tree | 09e3eb3060cec3a4ca4a422426c2b469f4bbd30d | |
parent | 95e1ce24e8b7e76c4edab92f20fd48682afa80a2 (diff) | |
download | rneovim-4f148edd75cc9c82697b7303d3d11a52d1ce56c4.tar.gz rneovim-4f148edd75cc9c82697b7303d3d11a52d1ce56c4.tar.bz2 rneovim-4f148edd75cc9c82697b7303d3d11a52d1ce56c4.zip |
tests: more cleanup of plugin/shada_spec
Ref: https://github.com/neovim/neovim/pull/10701/commits/330a6713#r311005754
Closes https://github.com/neovim/neovim/pull/10710.
-rw-r--r-- | test/functional/plugin/shada_spec.lua | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/test/functional/plugin/shada_spec.lua b/test/functional/plugin/shada_spec.lua index 778dc4e219..d8b9baa012 100644 --- a/test/functional/plugin/shada_spec.lua +++ b/test/functional/plugin/shada_spec.lua @@ -13,14 +13,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 +2548,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 +2885,3 @@ describe('syntax/shada.vim', function() eq(exp, act) end) end) - |