summaryrefslogtreecommitdiff
path: root/test/test_history_saving.vader
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2017-02-16 22:19:53 +0000
committerw0rp <devw0rp@gmail.com>2017-02-16 22:19:53 +0000
commit843370b96f9a92a2298ed7985a8f620784fc9421 (patch)
tree00ca288fc4df7d64d2e6e68aabcf64e131e7472b /test/test_history_saving.vader
parentca17b5aebdd9bb2e31d01ae16e18047bae375c3c (diff)
downloadale-843370b96f9a92a2298ed7985a8f620784fc9421.zip
#254 Capture command exit codes in the history
Diffstat (limited to 'test/test_history_saving.vader')
-rw-r--r--test/test_history_saving.vader5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/test_history_saving.vader b/test/test_history_saving.vader
index b3afdca2..23b9170b 100644
--- a/test/test_history_saving.vader
+++ b/test/test_history_saving.vader
@@ -35,9 +35,10 @@ Execute(History should be set when commands are run):
let g:history = g:ale_buffer_info[bufnr('%')].history
AssertEqual 1, len(g:history)
- AssertEqual ['status', 'job_id', 'command'], keys(g:history[0])
+ AssertEqual sort(['status', 'exit_code', 'job_id', 'command']), sort(keys(g:history[0]))
AssertEqual ['/bin/bash', '-c', 'echo command history test'], g:history[0].command
- AssertEqual 'started', g:history[0].status
+ 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.
AssertEqual type(1), type(g:history[0].job_id)