From 1980245b94d7b997c6ba376d8a2644397afe02d6 Mon Sep 17 00:00:00 2001 From: Horacio Sanson Date: Fri, 24 Aug 2018 13:02:51 +0900 Subject: Add solargraph LSP linter. --- test/command_callback/test_ruby_solargraph.vader | 29 ++++++++++++++++++++++++ test/ruby_fixtures/valid_ruby_app1/Rakefile | 0 test/ruby_fixtures/valid_ruby_app1/lib/file.rb | 0 test/ruby_fixtures/valid_ruby_app2/Gemfile | 0 test/ruby_fixtures/valid_ruby_app2/lib/file.rb | 0 5 files changed, 29 insertions(+) create mode 100644 test/command_callback/test_ruby_solargraph.vader create mode 100644 test/ruby_fixtures/valid_ruby_app1/Rakefile create mode 100644 test/ruby_fixtures/valid_ruby_app1/lib/file.rb create mode 100644 test/ruby_fixtures/valid_ruby_app2/Gemfile create mode 100644 test/ruby_fixtures/valid_ruby_app2/lib/file.rb (limited to 'test') 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 +" 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 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 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 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 -- cgit v1.2.3