diff options
author | w0rp <devw0rp@gmail.com> | 2021-03-21 00:21:49 +0000 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2021-03-21 00:25:33 +0000 |
commit | f7852dbd0a063d6d82ee17a5057fea53cb79b21d (patch) | |
tree | 00b98a3c668af9313eedd6936475c81eeef7e9b8 /test/command_callback/test_ruby_solargraph.vader | |
parent | 35caaecc9fc5822f0474e913d0b7655048fd30ee (diff) | |
download | ale-f7852dbd0a063d6d82ee17a5057fea53cb79b21d.zip |
#3633 - Move linter tests into test/linter
Diffstat (limited to 'test/command_callback/test_ruby_solargraph.vader')
-rw-r--r-- | test/command_callback/test_ruby_solargraph.vader | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/test/command_callback/test_ruby_solargraph.vader b/test/command_callback/test_ruby_solargraph.vader deleted file mode 100644 index e909049b..00000000 --- a/test/command_callback/test_ruby_solargraph.vader +++ /dev/null @@ -1,44 +0,0 @@ -" Author: Horacio Sanson <https://github.com/hsanson> -" Description: Tests for solargraph lsp linter. - -Before: - call ale#assert#SetUpLinterTest('ruby', 'solargraph') - -After: - call ale#assert#TearDownLinterTest() - -Execute(command callback should return default string): - AssertLinter 'solargraph', ale#Escape('solargraph') . ' stdio' - -Execute(command callback executable can be overridden): - let g:ale_ruby_solargraph_executable = 'foobar' - AssertLinter 'foobar', ale#Escape('foobar') . ' stdio' - -Execute(should set solargraph for rails app): - call ale#test#SetFilename('../test-files/ruby/valid_rails_app/app/models/thing.rb') - AssertLSPLanguage 'ruby' - AssertLSPOptions {} - AssertLSPProject ale#path#Simplify(g:dir . 'command_callback/../test-files/ruby/valid_rails_app') - -Execute(should set solargraph for ruby app1): - call ale#test#SetFilename('../test-files/ruby/valid_ruby_app1/lib/file.rb') - AssertLSPLanguage 'ruby' - AssertLSPOptions {} - AssertLSPProject ale#path#Simplify(g:dir . 'command_callback/../test-files/ruby/valid_ruby_app1') - -Execute(should set solargraph for ruby app2): - call ale#test#SetFilename('../test-files/ruby/valid_ruby_app2/lib/file.rb') - AssertLSPLanguage 'ruby' - AssertLSPOptions {} - AssertLSPProject ale#path#Simplify(g:dir . 'command_callback/../test-files/ruby/valid_ruby_app2') - -Execute(should set solargraph for ruby app3): - call ale#test#SetFilename('../test-files/ruby/valid_ruby_app3/lib/file.rb') - AssertLSPLanguage 'ruby' - AssertLSPOptions {} - AssertLSPProject ale#path#Simplify(g:dir . 'command_callback/../test-files/ruby/valid_ruby_app3') - -Execute(should accept initialization options): - AssertLSPOptions {} - let b:ale_ruby_solargraph_options = { 'diagnostics': 'true' } - AssertLSPOptions { 'diagnostics': 'true' } |