Skip to content

Commit 8403a1c

Browse files
committed
tests: remove EnsureLoaded
This should not be necessary, and causes e.g. :FZF to be loaded from the global Vim runtime (causing an assertion failure in the tests).
1 parent b4e6465 commit 8403a1c

File tree

2 files changed

+0
-11
lines changed

2 files changed

+0
-11
lines changed

test/test.vader

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,6 @@ Execute (Initialize test environment):
4444
endfunction
4545
command! -nargs=+ -bang AssertExpect call AssertExpect('<bang>' == '!', <args>)
4646

47-
function! EnsureLoaded()
48-
if has('vim_starting')
49-
runtime! plugin/**/*.vim
50-
endif
51-
endfunction
52-
5347
function! RmRf(file)
5448
call system(printf('rm -rf "%s"', a:file))
5549
endfunction
@@ -98,7 +92,6 @@ Execute (Cleanup):
9892
silent! delf PlugStatusSorted
9993
silent! delf AssertExpect
10094
silent! delf PlugUpdated
101-
silent! delf EnsureLoaded
10295
silent! delf ReloadPlug
10396
silent! delc AssertExpect
10497
silent! unmap /

test/workflow.vader

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -582,7 +582,6 @@ Given (Unaligned code):
582582
aa=2
583583

584584
Execute (Check installed plugins):
585-
call EnsureLoaded()
586585
Assert exists(':FNR'), 'FNR command should be found'
587586
Assert !exists(':RedisExecute'), 'RedisExecute command still should not be found'
588587

@@ -1341,7 +1340,6 @@ Execute (Strict load order):
13411340
Plug '$PLUG_FIXTURES/xxx'
13421341
Plug '$PLUG_FIXTURES/yyy', { 'for': ['xxx'] }
13431342
call plug#end()
1344-
call EnsureLoaded()
13451343
setf xxx
13461344
Log 'Case 1: ' . &rtp
13471345
AssertEqual ['yyy/ftdetect', 'yyy/after/ftdetect', 'xxx/ftdetect', 'xxx/after/ftdetect'], g:total_order[0:3]
@@ -1355,7 +1353,6 @@ Execute (Strict load order):
13551353
Plug '$PLUG_FIXTURES/xxx', { 'for': ['xxx'] }
13561354
Plug '$PLUG_FIXTURES/yyy'
13571355
call plug#end()
1358-
call EnsureLoaded()
13591356
set rtp^=manually-prepended
13601357
set rtp+=manually-appended
13611358
setf xxx
@@ -1375,7 +1372,6 @@ Execute (Strict load order):
13751372
Plug '$PLUG_FIXTURES/xxx', { 'for': ['xxx'] }
13761373
Plug '$PLUG_FIXTURES/yyy', { 'for': ['xxx'] }
13771374
call plug#end()
1378-
call EnsureLoaded()
13791375
setf xxx
13801376
Log 'Case 3: ' . &rtp
13811377
AssertEqual ['xxx/ftdetect', 'xxx/after/ftdetect', 'yyy/ftdetect', 'yyy/after/ftdetect'], g:total_order[0:3]

0 commit comments

Comments
 (0)