1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-02-03 07:10:05 +08:00
SpaceVim/bundle/gina.vim/test/gina/core/repo.vimspec

27 lines
580 B
Plaintext

Describe gina#core#repo
Before all
let Path = vital#gina#import('System.Filepath')
let slit1 = Slit(tempname(), 1)
call slit1.execute('config core.commentChar $')
End
After all
%bwipeout!
End
Before
%bwipeout!
End
Describe #config({git})
It returns a config dictionary of {git} repository
execute 'edit' fnameescape(slit1.worktree)
let git = gina#core#get()
let config = gina#core#repo#config(git)
Assert KeyExists(config, 'core.commentchar')
Assert Equals(config['core.commentchar'], '$')
End
End
End