summaryrefslogtreecommitdiff
path: root/test/fixers/test_erbformatter_fixer_callback.vader
blob: 417a64e8f239d251b39e621b81703e94d17f85e0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Before:
  call ale#assert#SetUpFixerTest('eruby', 'erb-formatter')

After:
  call ale#assert#TearDownFixerTest()

Execute(The erb-formatter callback should return the correct default values):
  AssertFixer {
  \    'command': ale#Escape('erb-formatter') . ' -w %t',
  \    'read_temporary_file': 1,
  \}

Execute(The erb-formatter callback should allow custom erb-formatter executables):
  let g:ale_eruby_erbformatter_executable = 'foo/bar'

  AssertFixer {
  \    'command': ale#Escape('foo/bar') . ' -w %t',
  \    'read_temporary_file': 1,
  \}