diff options
author | w0rp <w0rp@users.noreply.github.com> | 2018-08-28 21:52:18 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-28 21:52:18 +0100 |
commit | 09e43ab16bc8fe7d5ddc72e904b05682587fd335 (patch) | |
tree | 74c11f647694c42f7f7d81a995f9bc7e49c3930b /test | |
parent | 339930ad68a16e8298b8b84ef0ab428bf7061c5f (diff) | |
parent | 1980245b94d7b997c6ba376d8a2644397afe02d6 (diff) | |
download | ale-09e43ab16bc8fe7d5ddc72e904b05682587fd335.zip |
Merge pull request #1847 from hsanson/1846-support-solargraph-lsp
1846 support solargraph lsp
Diffstat (limited to 'test')
-rw-r--r-- | test/command_callback/test_ruby_solargraph.vader | 29 | ||||
-rw-r--r-- | test/ruby_fixtures/valid_ruby_app1/Rakefile | 0 | ||||
-rw-r--r-- | test/ruby_fixtures/valid_ruby_app1/lib/file.rb | 0 | ||||
-rw-r--r-- | test/ruby_fixtures/valid_ruby_app2/Gemfile | 0 | ||||
-rw-r--r-- | test/ruby_fixtures/valid_ruby_app2/lib/file.rb | 0 |
5 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' diff --git a/test/ruby_fixtures/valid_ruby_app1/Rakefile b/test/ruby_fixtures/valid_ruby_app1/Rakefile new file mode 100644 index 00000000..e69de29b --- /dev/null +++ b/test/ruby_fixtures/valid_ruby_app1/Rakefile diff --git a/test/ruby_fixtures/valid_ruby_app1/lib/file.rb b/test/ruby_fixtures/valid_ruby_app1/lib/file.rb new file mode 100644 index 00000000..e69de29b --- /dev/null +++ b/test/ruby_fixtures/valid_ruby_app1/lib/file.rb diff --git a/test/ruby_fixtures/valid_ruby_app2/Gemfile b/test/ruby_fixtures/valid_ruby_app2/Gemfile new file mode 100644 index 00000000..e69de29b --- /dev/null +++ b/test/ruby_fixtures/valid_ruby_app2/Gemfile diff --git a/test/ruby_fixtures/valid_ruby_app2/lib/file.rb b/test/ruby_fixtures/valid_ruby_app2/lib/file.rb new file mode 100644 index 00000000..e69de29b --- /dev/null +++ b/test/ruby_fixtures/valid_ruby_app2/lib/file.rb |