Skip to content

Commit

Permalink
tests: fix broken test case
Browse files Browse the repository at this point in the history
  • Loading branch information
mrcjkb committed Dec 2, 2024
1 parent 4ac7a3c commit 40c2e3d
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions spec/lsp_spec.lua
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
-- load RustAnalyzer command
require('rustaceanvim.lsp')

local stub = require('luassert.stub')
describe('LSP client API', function()
vim.g.rustaceanvim = {
server = {
-- Prevent start in detached mode
root_dir = vim.fn.tempname(),
},
}
-- load RustAnalyzer command
require('rustaceanvim.lsp')
local RustaceanConfig = require('rustaceanvim.config.internal')
local Types = require('rustaceanvim.types.internal')
local ra_bin = Types.evaluate(RustaceanConfig.server.cmd)[1]
Expand Down

0 comments on commit 40c2e3d

Please sign in to comment.