install.fairie/dotfiles/.vim/plugged/vim-multiple-cursors/spec/spec_helper.rb
Git E2E Dev Test Username 62e125f76e git subrepo clone https://github.com/terryma/vim-multiple-cursors.git ./dotfiles/.vim/plugged/vim-multiple-cursors
subrepo:
  subdir:   "dotfiles/.vim/plugged/vim-multiple-cursors"
  merged:   "6456718e"
upstream:
  origin:   "https://github.com/terryma/vim-multiple-cursors.git"
  branch:   "master"
  commit:   "6456718e"
git-subrepo:
  version:  "0.4.3"
  origin:   "???"
  commit:   "???"
2022-10-18 10:37:03 -04:00

25 lines
742 B
Ruby

require 'vimrunner'
require 'vimrunner/rspec'
Vimrunner::RSpec.configure do |config|
# Use a single Vim instance for the test suite. Set to false to use an
# instance per test (slower, but can be easier to manage).
config.reuse_server = false
# Decide how to start a Vim instance. In this block, an instance should be
# spawned and set up with anything project-specific.
config.start_vim do
# vim = Vimrunner.start
# Or, start a GUI instance:
vim = Vimrunner.start_gvim
# Setup your plugin in the Vim instance
plugin_path = File.expand_path('../..', __FILE__)
vim.add_plugin(plugin_path, 'plugin/multiple_cursors.vim')
# The returned value is the Client available in the tests.
vim
end
end