diff options
author | David Buchan-Swanson <david.buchanswanson@gmail.com> | 2021-02-18 18:33:02 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-18 16:33:02 +0900 |
commit | 1ee7f6c97bb73bb6e12f00e527b664c5ea0df167 (patch) | |
tree | 69e70e0a329998492faece429cedee933d31f5a1 /test/fixers | |
parent | 0b35c3a5b9d5f9d3bb1021d89c1bdb9dbbf8a958 (diff) | |
download | ale-1ee7f6c97bb73bb6e12f00e527b664c5ea0df167.zip |
add support for prettier-ruby to prettier fixer (#3593)
it _does_ need an additional plugin, but when it has the plugin, it
works as expected.
Diffstat (limited to 'test/fixers')
-rw-r--r-- | test/fixers/test_prettier_fixer_callback.vader | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/fixers/test_prettier_fixer_callback.vader b/test/fixers/test_prettier_fixer_callback.vader index fdd97df3..b999071f 100644 --- a/test/fixers/test_prettier_fixer_callback.vader +++ b/test/fixers/test_prettier_fixer_callback.vader @@ -269,6 +269,20 @@ Execute(Should set --parser based on filetype, HTML): \ . ' --stdin-filepath %s --stdin', \ } +Execute(Should set --parser based on filetype, Ruby): + call ale#test#SetFilename('../prettier-test-files/testfile') + + set filetype=ruby + + GivenCommandOutput ['1.6.0'] + AssertFixer + \ { + \ 'command': ale#path#CdString(expand('%:p:h')) + \ . ale#Escape(g:ale_javascript_prettier_executable) + \ . ' --parser ruby' + \ . ' --stdin-filepath %s --stdin', + \ } + Execute(Should set --parser based on first filetype of multiple filetypes): call ale#test#SetFilename('../prettier-test-files/testfile') |