ale/test/fixers/test_rustfmt_fixer_callback...

17 lines
561 B
Plaintext
Raw Normal View History

2017-10-21 17:31:49 +00:00
Before:
call ale#assert#SetUpFixerTest('rust', 'rustfmt')
2017-10-21 17:31:49 +00:00
After:
call ale#assert#TearDownFixerTest()
2017-10-21 17:31:49 +00:00
Execute(The rustfmt callback should return the correct default values):
call ale#test#SetFilename('../test-files/rust/testfile.rs')
2017-10-21 17:31:49 +00:00
AssertFixer {'command': ale#Escape('rustfmt')}
2017-10-21 17:31:49 +00:00
Execute(The rustfmt callback should include custom rustfmt options):
let g:ale_rust_rustfmt_options = "--skip-children"
call ale#test#SetFilename('../test-files/rust/testfile.rs')
2017-10-21 17:31:49 +00:00
AssertFixer {'command': ale#Escape('rustfmt') . ' ' . g:ale_rust_rustfmt_options}