2013-09-14 14:09:32 -04:00
|
|
|
require 'vimrunner'
|
|
|
|
require 'vimrunner/rspec'
|
|
|
|
|
2013-09-14 14:42:27 -04:00
|
|
|
$plugin_path = File.expand_path('../..', __FILE__)
|
2013-09-14 14:09:32 -04:00
|
|
|
|
|
|
|
Vimrunner::RSpec.configure do |config|
|
2019-05-01 17:52:55 -04:00
|
|
|
config.reuse_server = false
|
2019-03-10 14:42:33 -04:00
|
|
|
|
2013-09-14 14:09:32 -04: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 14:42:27 -04:00
|
|
|
vim.add_plugin($plugin_path)
|
2013-09-14 14:09:32 -04:00
|
|
|
|
|
|
|
# The returned value is the Client available in the tests.
|
|
|
|
vim
|
|
|
|
end
|
|
|
|
end
|