From 5a947933d727503482776b9459e8680b7f29324a Mon Sep 17 00:00:00 2001 From: w0rp Date: Fri, 12 May 2017 21:16:15 +0100 Subject: Refactor jobs into a Vim version agnostic API which can be used for other purposes --- test/test_history_saving.vader | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'test/test_history_saving.vader') diff --git a/test/test_history_saving.vader b/test/test_history_saving.vader index b6c75972..2f1044d7 100644 --- a/test/test_history_saving.vader +++ b/test/test_history_saving.vader @@ -44,13 +44,7 @@ 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])) - - 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 ['/bin/sh', '-c', 'echo command history test'], g:history[0].command 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. -- cgit v1.2.3