summaryrefslogtreecommitdiff
path: root/test/fixers
diff options
context:
space:
mode:
Diffstat (limited to 'test/fixers')
-rw-r--r--test/fixers/test_prettier_fixer_callback.vader14
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')