Move specs location one level down

This commit is contained in:
Adam Stankiewicz
2013-09-14 20:20:59 +02:00
parent f6be1d3d13
commit 27f22774b1
4 changed files with 1 additions and 1 deletions

23
spec/spec_helper.rb Executable file
View File

@@ -0,0 +1,23 @@
require 'vimrunner'
require 'vimrunner/rspec'
PLUGIN_PATH = File.expand_path('../..', __FILE__)
puts PLUGIN_PATH
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 = 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