summaryrefslogtreecommitdiff
path: root/test/command_callback
diff options
context:
space:
mode:
authorHoracio Sanson <horacio@allm.net>2018-08-24 13:02:51 +0900
committerHoracio Sanson <horacio@allm.net>2018-08-27 10:58:17 +0900
commit1980245b94d7b997c6ba376d8a2644397afe02d6 (patch)
tree505aa9d0b20902e044926f9f2965ddbb3abe2067 /test/command_callback
parent3c85c7ef65242cf80279cf9dcf843523f6d7875b (diff)
downloadale-1980245b94d7b997c6ba376d8a2644397afe02d6.zip
Add solargraph LSP linter.
Diffstat (limited to 'test/command_callback')
-rw-r--r--test/command_callback/test_ruby_solargraph.vader29
1 files changed, 29 insertions, 0 deletions
diff --git a/test/command_callback/test_ruby_solargraph.vader b/test/command_callback/test_ruby_solargraph.vader
new file mode 100644
index 00000000..a27cb62d
--- /dev/null
+++ b/test/command_callback/test_ruby_solargraph.vader
@@ -0,0 +1,29 @@
+" 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(should set solargraph for rails app):
+ call ale#test#SetFilename('../ruby_fixtures/valid_rails_app/app/models/thing.rb')
+ AssertLSPLanguage 'ruby'
+ AssertLSPOptions {}
+ AssertLSPProject ale#path#Simplify(g:dir . 'command_callback/../ruby_fixtures/valid_rails_app')
+ AssertLSPAddress '127.0.0.1:7658'
+
+Execute(should set solargraph for ruby app1):
+ call ale#test#SetFilename('../ruby_fixtures/valid_ruby_app1/lib/file.rb')
+ AssertLSPLanguage 'ruby'
+ AssertLSPOptions {}
+ AssertLSPProject ale#path#Simplify(g:dir . 'command_callback/../ruby_fixtures/valid_ruby_app1')
+ AssertLSPAddress '127.0.0.1:7658'
+
+Execute(should set solargraph for ruby app2):
+ call ale#test#SetFilename('../ruby_fixtures/valid_ruby_app2/lib/file.rb')
+ AssertLSPLanguage 'ruby'
+ AssertLSPOptions {}
+ AssertLSPProject ale#path#Simplify(g:dir . 'command_callback/../ruby_fixtures/valid_ruby_app2')
+ AssertLSPAddress '127.0.0.1:7658'