diff options
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/jobs/outdated-servers/gem_spec.lua | 17 | ||||
| -rw-r--r-- | tests/server_spec.lua | 5 |
2 files changed, 17 insertions, 5 deletions
diff --git a/tests/jobs/outdated-servers/gem_spec.lua b/tests/jobs/outdated-servers/gem_spec.lua index 6367d7be..eb2ce086 100644 --- a/tests/jobs/outdated-servers/gem_spec.lua +++ b/tests/jobs/outdated-servers/gem_spec.lua @@ -25,4 +25,21 @@ describe("gem outdated package checker", function() assert.is_nil(gem_check.parse_outdated_gem "a whole bunch of gibberish!") assert.is_nil(gem_check.parse_outdated_gem "") end) + + it("should parse gem list output", function() + assert.equals( + vim.inspect { + ["solargraph"] = "0.44.3", + ["unicode-display_width"] = "2.1.0", + }, + vim.inspect(gem_check.parse_gem_list_output [[ + +*** LOCAL GEMS *** + +nokogiri (1.13.3 arm64-darwin) +solargraph (0.44.3) +unicode-display_width (2.1.0) +]]) + ) + end) end) diff --git a/tests/server_spec.lua b/tests/server_spec.lua index 5204fb69..744b4cf8 100644 --- a/tests/server_spec.lua +++ b/tests/server_spec.lua @@ -1,12 +1,7 @@ local spy = require "luassert.spy" -local match = require "luassert.match" local lsp_installer = require "nvim-lsp-installer" local server = require "nvim-lsp-installer.server" local a = require "nvim-lsp-installer.core.async" -local std = require "nvim-lsp-installer.installers.std" -local fs = require "nvim-lsp-installer.fs" -local path = require "nvim-lsp-installer.path" -local settings = require "nvim-lsp-installer.settings" describe("server", function() it( |
