summaryrefslogtreecommitdiff
path: root/test/fixers/test_buildifier_fixer_callback.vader
diff options
context:
space:
mode:
Diffstat (limited to 'test/fixers/test_buildifier_fixer_callback.vader')
-rw-r--r--test/fixers/test_buildifier_fixer_callback.vader26
1 files changed, 6 insertions, 20 deletions
diff --git a/test/fixers/test_buildifier_fixer_callback.vader b/test/fixers/test_buildifier_fixer_callback.vader
index db9f1e55..f82e8e6e 100644
--- a/test/fixers/test_buildifier_fixer_callback.vader
+++ b/test/fixers/test_buildifier_fixer_callback.vader
@@ -11,7 +11,9 @@ Execute(The buildifier callback should return the correct default values):
AssertFixer
\ {
\ 'command': ale#Escape(g:ale_bazel_buildifier_executable)
- \ . ' -mode fix -lint fix -type workspace -'
+ \ . ' -mode fix -lint fix -path '
+ \ . ale#Escape(ale#test#GetFilename('../test-files/bazel/WORKSPACE'))
+ \ . ' -'
\ }
Execute(The buildifier callback should include any additional options):
@@ -21,23 +23,7 @@ Execute(The buildifier callback should include any additional options):
AssertFixer
\ {
\ 'command': ale#Escape(g:ale_bazel_buildifier_executable)
- \ . ' -mode fix -lint fix -type workspace --some-option -',
- \ }
-
-Execute(The buildifier callback should recognize BUILD files):
- call ale#test#SetFilename('../test-files/bazel/BUILD')
-
- AssertFixer
- \ {
- \ 'command': ale#Escape(g:ale_bazel_buildifier_executable)
- \ . ' -mode fix -lint fix -type build -'
- \ }
-
-Execute(The buildifier callback should recognize .bzl files):
- call ale#test#SetFilename('../test-files/bazel/defs.bzl')
-
- AssertFixer
- \ {
- \ 'command': ale#Escape(g:ale_bazel_buildifier_executable)
- \ . ' -mode fix -lint fix -type bzl -'
+ \ . ' -mode fix -lint fix -path '
+ \ . ale#Escape(ale#test#GetFilename('../test-files/bazel/WORKSPACE'))
+ \ . ' --some-option -'
\ }