vim-polyglot/spec/spec_helper.rb

21 lines
509 B
Ruby
Raw Normal View History

require 'vimrunner'
require 'vimrunner/rspec'
2013-09-14 20:42:27 +02:00
$plugin_path = File.expand_path('../..', __FILE__)
Vimrunner::RSpec.configure do |config|
config.reuse_server = false
2019-03-10 19:42:33 +01:00
# 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
# Setup your plugin in the Vim instance
2013-09-14 20:42:27 +02:00
vim.add_plugin($plugin_path)
# The returned value is the Client available in the tests.
vim
end
end