summaryrefslogtreecommitdiff
path: root/test/fixers/test_dhall_freeze_fixer_callback.vader
diff options
context:
space:
mode:
Diffstat (limited to 'test/fixers/test_dhall_freeze_fixer_callback.vader')
-rw-r--r--test/fixers/test_dhall_freeze_fixer_callback.vader13
1 files changed, 4 insertions, 9 deletions
diff --git a/test/fixers/test_dhall_freeze_fixer_callback.vader b/test/fixers/test_dhall_freeze_fixer_callback.vader
index 6e9650eb..c8f820bb 100644
--- a/test/fixers/test_dhall_freeze_fixer_callback.vader
+++ b/test/fixers/test_dhall_freeze_fixer_callback.vader
@@ -7,17 +7,13 @@ Before:
let g:ale_dhall_options = '--ascii'
let g:ale_dhall_freeze_options = '--all'
- call ale#test#SetDirectory('/testplugin/test/dhall')
+ call ale#assert#SetUpFixerTest('dhall-freeze', 'dhall-freeze')
After:
- Restore
-
- call ale#test#RestoreDirectory()
+ call ale#assert#TearDownFixerTest()
Execute(The dhall-freeze callback should return the correct options):
- call ale#test#SetFilename('../dhall_files/testfile.dhall')
-
- AssertEqual
+ AssertFixer
\ {
\ 'command': ale#Escape('odd-dhall')
\ . ' --ascii'
@@ -25,5 +21,4 @@ Execute(The dhall-freeze callback should return the correct options):
\ . ' --all'
\ . ' --inplace %t',
\ 'read_temporary_file': 1,
- \ },
- \ ale#fixers#dhall_freeze#Freeze(bufnr(''))
+ \ }