From e5e75efebcb45a24e78b362143edb768e64f0419 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Fri, 4 Aug 2017 19:25:06 +0900 Subject: [PATCH] [vim] Fix vader test cases --- test/fzf.vader | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/fzf.vader b/test/fzf.vader index c2d8d53c..a1a6a2e0 100644 --- a/test/fzf.vader +++ b/test/fzf.vader @@ -6,11 +6,11 @@ Execute (Setup): Execute (fzf#run with dir option): let cwd = getcwd() - let result = fzf#run({ 'options': '--filter=vdr', 'dir': g:dir }) + let result = fzf#run({ 'source': 'git ls-files', 'options': '--filter=vdr', 'dir': g:dir }) AssertEqual ['fzf.vader'], result AssertEqual getcwd(), cwd - let result = sort(fzf#run({ 'options': '--filter e', 'dir': g:dir })) + let result = sort(fzf#run({ 'source': 'git ls-files', 'options': '--filter e', 'dir': g:dir })) AssertEqual ['fzf.vader', 'test_go.rb'], result AssertEqual getcwd(), cwd @@ -19,7 +19,7 @@ Execute (fzf#run with Funcref command): function! g:FzfTest(e) call add(g:ret, a:e) endfunction - let result = sort(fzf#run({ 'sink': function('g:FzfTest'), 'options': '--filter e', 'dir': g:dir })) + let result = sort(fzf#run({ 'source': 'git ls-files', 'sink': function('g:FzfTest'), 'options': '--filter e', 'dir': g:dir })) AssertEqual ['fzf.vader', 'test_go.rb'], result AssertEqual ['fzf.vader', 'test_go.rb'], sort(g:ret) @@ -140,7 +140,7 @@ Execute (fzf#wrap): let g:fzf_history_dir = '/tmp' let opts = fzf#wrap('foobar', {'options': '--color light'}) Log opts - Assert opts.options =~ '--history /tmp/foobar' + Assert opts.options =~ "--history '/tmp/foobar'" Assert opts.options =~ '--color light' let g:fzf_colors = { 'fg': ['fg', 'Error'] }