Update spec infra

This commit is contained in:
Cameron 2023-02-20 19:29:31 +01:00
parent 52046b6d31
commit 84079ed4a4
3 changed files with 4 additions and 4 deletions

View file

@ -1,3 +1,3 @@
#!/usr/bin/env bash
nvim -u NONE --clean --headless -c "lua dofile('spec/init.lua')"
nvim -n --clean --noplugin -u NORC --headless -S "./spec/init.lua"

View file

@ -5,8 +5,8 @@ local function ensure_installed(repo)
vim.opt.rtp:prepend(install_path)
if not vim.loop.fs_stat(install_path) then
print("* Downloading " .. name .. " to '" .. install_path .. "'")
vim.fn.system({ "git", "clone", "git@github.com:" .. repo .. ".git", "--branch=master", install_path })
print("* Downloading " .. name .. " to '" .. install_path .. "/'")
vim.fn.system({ "git", "clone", "git@github.com:" .. repo .. ".git", install_path })
end
end

View file

@ -95,7 +95,7 @@ function SpecHelper:new(lang, buf_opts)
end
-- Runs full integration test for text
-- Cursor (pos) is 0-indexed, { row, col }. Defaults to first line, first col if empty
-- Cursor (pos) is 1-indexed, { row, col }. Defaults to first line, first col if empty
-- Returns full buffer text as a table, one string per line.
--
-- @param text string|table