diff options
author | w0rp <w0rp@users.noreply.github.com> | 2018-11-10 10:57:11 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-10 10:57:11 +0000 |
commit | 90f2875f29b3b74a3319cdfd88cbff00af389b67 (patch) | |
tree | 424a92ee2bd9fc6f559a23c0c0ec455dd23b4459 /test | |
parent | f8d3ffb60e132e3c4b0b853b9ae21b49acdacd5d (diff) | |
parent | b9fb62a4cd302486914403e41676e78b4cfdf0e3 (diff) | |
download | ale-90f2875f29b3b74a3319cdfd88cbff00af389b67.zip |
Merge pull request #2053 from andreypopp/fix-ocamlformat-stdin-stdout
Make ocamlformat work without temporary files
Diffstat (limited to 'test')
-rw-r--r-- | test/fixers/test_ocamlformat_fixer_callback.vader | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/test/fixers/test_ocamlformat_fixer_callback.vader b/test/fixers/test_ocamlformat_fixer_callback.vader index d2aee066..f0c36ed7 100644 --- a/test/fixers/test_ocamlformat_fixer_callback.vader +++ b/test/fixers/test_ocamlformat_fixer_callback.vader @@ -18,10 +18,9 @@ Execute(The ocamlformat callback should return the correct default values): AssertEqual \ { - \ 'read_temporary_file': 1, \ 'command': ale#Escape('xxxinvalid') - \ . ' --inplace' - \ . ' %t', + \ . ' --name=' . ale#Escape(bufname(bufnr(''))) + \ . ' -', \ }, \ ale#fixers#ocamlformat#Fix(bufnr('')) @@ -31,10 +30,9 @@ Execute(The ocamlformat callback should include custom ocamlformat options): AssertEqual \ { - \ 'read_temporary_file': 1, \ 'command': ale#Escape('xxxinvalid') \ . ' ' . g:ale_ocaml_ocamlformat_options - \ . ' --inplace' - \ . ' %t', + \ . ' --name=' . ale#Escape(bufname(bufnr(''))) + \ . ' -', \ }, \ ale#fixers#ocamlformat#Fix(bufnr('')) |