All patches and comments are welcome. Please squash your changes to logical
commits before using git-format-patch and git-send-email to
patches@git.madduck.net.
If you'd read over the Git project's submission guidelines and adhered to them,
I'd be especially grateful.
2 call ale#assert#SetUpLinterTest('ruby', 'brakeman')
5 call ale#assert#TearDownLinterTest()
7 Execute(The brakeman command callback should detect absence of a valid Rails app):
8 call ale#test#SetFilename('../test-files/ruby/not_a_rails_app/test.rb')
10 AssertLinter 'brakeman', ''
12 Execute(The brakeman command callback should find a valid Rails app root):
13 call ale#test#SetFilename('../test-files/ruby/valid_rails_app/db/test.rb')
15 AssertLinter 'brakeman', ale#Escape('brakeman')
17 \ . ale#Escape(ale#path#Simplify(g:dir . '/../test-files/ruby/valid_rails_app'))
19 Execute(The brakeman command callback should include configured options):
20 call ale#test#SetFilename('../test-files/ruby/valid_rails_app/db/test.rb')
22 let g:ale_ruby_brakeman_options = '--combobulate'
24 AssertLinter 'brakeman', ale#Escape('brakeman')
25 \ . ' -f json -q --combobulate -p '
26 \ . ale#Escape(ale#path#Simplify(g:dir . '/../test-files/ruby/valid_rails_app'))
28 Execute(Setting bundle appends 'exec brakeman'):
29 call ale#test#SetFilename('../test-files/ruby/valid_rails_app/db/test.rb')
31 let g:ale_ruby_brakeman_executable = 'bundle'
32 let g:ale_ruby_brakeman_options = '--combobulate'
34 AssertLinter 'bundle', ale#Escape('bundle')
36 \ . ' -f json -q --combobulate -p '
37 \ . ale#Escape(ale#path#Simplify(g:dir . '/../test-files/ruby/valid_rails_app'))