summaryrefslogtreecommitdiff
path: root/test/test_history_saving.vader
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2017-05-12 20:38:52 +0100
committerw0rp <devw0rp@gmail.com>2017-05-12 20:38:52 +0100
commit2bafdb7e5a5cb96cb8263ed1b7bb79be021e4350 (patch)
tree022bac7040c99d8d6096ee7086d98ac442df21d1 /test/test_history_saving.vader
parent07b2542c0d6505f2a843e700d246367a522ecf64 (diff)
downloadale-2bafdb7e5a5cb96cb8263ed1b7bb79be021e4350.zip
Run all tests in NeoVim, improve the test script, and make all tests pass for NeoVim
Diffstat (limited to 'test/test_history_saving.vader')
-rw-r--r--test/test_history_saving.vader8
1 files changed, 7 insertions, 1 deletions
diff --git a/test/test_history_saving.vader b/test/test_history_saving.vader
index 2f1044d7..b6c75972 100644
--- a/test/test_history_saving.vader
+++ b/test/test_history_saving.vader
@@ -44,7 +44,13 @@ Execute(History should be set when commands are run):
AssertEqual 1, len(g:history)
AssertEqual sort(['status', 'exit_code', 'job_id', 'command']), sort(keys(g:history[0]))
- AssertEqual ['/bin/sh', '-c', 'echo command history test'], g:history[0].command
+
+ if has('nvim')
+ AssertEqual 'echo command history test', g:history[0].command
+ else
+ AssertEqual ['/bin/sh', '-c', 'echo command history test'], g:history[0].command
+ endif
+
AssertEqual 'finished', g:history[0].status
AssertEqual 0, g:history[0].exit_code
" The Job ID will change each time, but we can check the type.