diff --git a/test/fzf.vader b/test/fzf.vader index c2d8d53..a1a6a2e 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'] }