summaryrefslogblamecommitdiffstats
path: root/spec/spec_helper.rb
blob: 5b8e5ace62eba1358b6a9607b3d1c0bd53841dec (plain) (tree)
1
2
3
4
5
6
7
8


                         
                                                  

                                      
                            
 





                                                                            
                                




                                                              
require 'vimrunner'
require 'vimrunner/rspec'

$plugin_path = File.expand_path('../..', __FILE__)

Vimrunner::RSpec.configure do |config|
  config.reuse_server = true

  # 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
    vim.add_plugin($plugin_path)

    # The returned value is the Client available in the tests.
    vim
  end
end