Merge pull request #2016 from terryding77/master

fix: change google_java_format_* to java_google_java_format_*
This commit is contained in:
w0rp
2018-10-25 15:34:31 +01:00
committed by w0rp
parent 2dbfbe7b02
commit 0c17ba2a0f
2 changed files with 9 additions and 9 deletions

View File

@@ -1,8 +1,8 @@
Before:
Save g:ale_google_java_format_executable
Save g:ale_java_google_java_format_executable
" Use an invalid global executable, so we don't match it.
let g:ale_google_java_format_executable = 'xxxinvalid'
let g:ale_java_google_java_format_executable = 'xxxinvalid'
call ale#test#SetDirectory('/testplugin/test/fixers')
@@ -17,11 +17,11 @@ Execute(The google-java-format callback should return 0 when the executable isn'
\ ale#fixers#google_java_format#Fix(bufnr(''))
Execute(The google-java-format callback should run the command when the executable test passes):
let g:ale_google_java_format_executable = has('win32') ? 'cmd' : 'echo'
let g:ale_java_google_java_format_executable = has('win32') ? 'cmd' : 'echo'
AssertEqual
\ {
\ 'read_temporary_file': 1,
\ 'command': ale#Escape(ale_google_java_format_executable) . ' --replace %t'
\ 'command': ale#Escape(ale_java_google_java_format_executable) . ' --replace %t'
\ },
\ ale#fixers#google_java_format#Fix(bufnr(''))