1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-24 06:30:03 +08:00
SpaceVim/test/plugin/mkdir.vader

23 lines
520 B
Plaintext
Raw Normal View History

2022-04-03 23:21:00 +08:00
Execute ( SpaceVim plugin: mkdir.vim ):
augroup mkdir_test
au!
autocmd BufWritePre * call SpaceVim#plugins#mkdir#CreateCurrent()
augroup END
let tempfile = tempname() . '/test/test'
2022-09-11 21:07:23 +08:00
" '/home/runner/.cache/SpaceVim/undofile' for undo file: permission denied
let undofile = &undofile
set noundofile
2022-04-03 23:21:00 +08:00
exe 'e' tempfile
w
AssertEqual filereadable(tempfile), 1
bwipeout
2022-09-11 21:07:23 +08:00
let &undofile = undofile
2022-04-03 23:21:00 +08:00
unlet tempfile
2022-09-11 21:07:23 +08:00
unlet undofile
2022-04-03 23:21:00 +08:00
augroup mkdir_test
au!
augroup END