aboutsummaryrefslogtreecommitdiff
path: root/test/functional/legacy
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2015-06-12 03:09:12 -0400
committerJustin M. Keyes <justinkz@gmail.com>2015-06-12 03:32:18 -0400
commit1f0830f7004c60f899fc169baecd68960f26ea70 (patch)
treeba7961e6df8af043905c2aefd2cfabaad7975c53 /test/functional/legacy
parentfa4b5211c63b4015df0b035bdda05379ea6ac897 (diff)
downloadrneovim-1f0830f7004c60f899fc169baecd68960f26ea70.tar.gz
rneovim-1f0830f7004c60f899fc169baecd68960f26ea70.tar.bz2
rneovim-1f0830f7004c60f899fc169baecd68960f26ea70.zip
tests: wviminfo_spec.lua: rework
074_global_var_in_viminfo_spec: remove some redundant sanity checks.
Diffstat (limited to 'test/functional/legacy')
-rw-r--r--test/functional/legacy/074_global_var_in_viminfo_spec.lua11
1 files changed, 5 insertions, 6 deletions
diff --git a/test/functional/legacy/074_global_var_in_viminfo_spec.lua b/test/functional/legacy/074_global_var_in_viminfo_spec.lua
index 4f05db6a69..180071118a 100644
--- a/test/functional/legacy/074_global_var_in_viminfo_spec.lua
+++ b/test/functional/legacy/074_global_var_in_viminfo_spec.lua
@@ -34,21 +34,20 @@ describe('storing global variables in viminfo files', function()
)
eq(test_dict, eval('MY_GLOBAL_DICT'))
eq(test_list, eval('MY_GLOBAL_LIST'))
- -- Assert that the viminfo file does not exists.
- eq(nil, lfs.attributes('Xviminfo'))
+
execute('wv! Xviminfo')
wait()
+
-- Assert that the viminfo file exists.
neq(nil, lfs.attributes('Xviminfo'))
execute('unlet MY_GLOBAL_DICT',
- 'unlet MY_GLOBAL_LIST')
+ 'unlet MY_GLOBAL_LIST')
-- Assert that the variables where deleted.
eq(0, eval('exists("MY_GLOBAL_DICT")'))
eq(0, eval('exists("MY_GLOBAL_LIST")'))
+
execute('rv! Xviminfo')
- -- Assert that the variables where restored.
- eq(1, eval('exists("MY_GLOBAL_DICT")'))
- eq(1, eval('exists("MY_GLOBAL_LIST")'))
+
eq(test_list, eval('MY_GLOBAL_LIST'))
eq(test_dict, eval('MY_GLOBAL_DICT'))
end)