diff options
author | James McCoy <jamessan@jamessan.com> | 2017-04-09 01:04:26 -0400 |
---|---|---|
committer | James McCoy <jamessan@jamessan.com> | 2017-07-14 06:44:22 -0400 |
commit | d67e48379f50b83f955d322de9e23b7a7013d39c (patch) | |
tree | 4ad21ced07ba1d966c6d1d57efc1214be990f7b3 | |
parent | 06ec15121a4da439684cfa1909d920c3f22f2894 (diff) | |
download | rneovim-d67e48379f50b83f955d322de9e23b7a7013d39c.tar.gz rneovim-d67e48379f50b83f955d322de9e23b7a7013d39c.tar.bz2 rneovim-d67e48379f50b83f955d322de9e23b7a7013d39c.zip |
test: shada: Replace hard-coded 704 with dynamic version
-rw-r--r-- | test/functional/plugin/shada_spec.lua | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/test/functional/plugin/shada_spec.lua b/test/functional/plugin/shada_spec.lua index 639833071b..dbc78e63f0 100644 --- a/test/functional/plugin/shada_spec.lua +++ b/test/functional/plugin/shada_spec.lua @@ -2076,13 +2076,14 @@ describe('In autoload/shada.vim', function() end it('works', function() + local version = nvim('get_vvar', 'version') getbstrings_eq({{timestamp='current', type=1, value={ generator='shada.vim', - version=704, + version=version, }}}, {}) getbstrings_eq({ {timestamp='current', type=1, value={ - generator='shada.vim', version=704 + generator='shada.vim', version=version }}, {timestamp=0, type=1, value={generator='test'}} }, { @@ -2093,11 +2094,11 @@ describe('In autoload/shada.vim', function() nvim('set_var', 'shada#add_own_header', 1) getbstrings_eq({{timestamp='current', type=1, value={ generator='shada.vim', - version=704, + version=version, }}}, {}) getbstrings_eq({ {timestamp='current', type=1, value={ - generator='shada.vim', version=704 + generator='shada.vim', version=version }}, {timestamp=0, type=1, value={generator='test'}} }, { |