summaryrefslogtreecommitdiff
path: root/test/fixers/test_dhall_freeze_fixer_callback.vader
diff options
context:
space:
mode:
authorBartek thindil Jasicki <thindil@laeran.pl>2021-01-22 09:45:52 +0100
committerBartek thindil Jasicki <thindil@laeran.pl>2021-01-22 09:45:52 +0100
commit42bf5ca91110bac565d76263bd5d21ebb9b142a9 (patch)
tree5588c363f8a1e4129cc6c9adf7136daaedf0adf1 /test/fixers/test_dhall_freeze_fixer_callback.vader
parent45a28383a2da3d28bdc5e7d3a0deb6365680980d (diff)
parent7e3d2930d8defbcb233b0bc21822cb8e8377bec2 (diff)
downloadale-42bf5ca91110bac565d76263bd5d21ebb9b142a9.zip
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'test/fixers/test_dhall_freeze_fixer_callback.vader')
-rw-r--r--test/fixers/test_dhall_freeze_fixer_callback.vader24
1 files changed, 24 insertions, 0 deletions
diff --git a/test/fixers/test_dhall_freeze_fixer_callback.vader b/test/fixers/test_dhall_freeze_fixer_callback.vader
new file mode 100644
index 00000000..c8f820bb
--- /dev/null
+++ b/test/fixers/test_dhall_freeze_fixer_callback.vader
@@ -0,0 +1,24 @@
+Before:
+ Save g:ale_dhall_executable
+ Save g:ale_dhall_options
+
+ " Use an invalid global executable, so we don’t match it.
+ let g:ale_dhall_executable = 'odd-dhall'
+ let g:ale_dhall_options = '--ascii'
+ let g:ale_dhall_freeze_options = '--all'
+
+ call ale#assert#SetUpFixerTest('dhall-freeze', 'dhall-freeze')
+
+After:
+ call ale#assert#TearDownFixerTest()
+
+Execute(The dhall-freeze callback should return the correct options):
+ AssertFixer
+ \ {
+ \ 'command': ale#Escape('odd-dhall')
+ \ . ' --ascii'
+ \ . ' freeze'
+ \ . ' --all'
+ \ . ' --inplace %t',
+ \ 'read_temporary_file': 1,
+ \ }