summaryrefslogtreecommitdiffstats
path: root/spec/spec_helper.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/spec_helper.rb')
-rwxr-xr-xspec/spec_helper.rb5
1 files changed, 2 insertions, 3 deletions
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
index b2cd9a24..0048686d 100755
--- a/spec/spec_helper.rb
+++ b/spec/spec_helper.rb
@@ -1,8 +1,7 @@
require 'vimrunner'
require 'vimrunner/rspec'
-PLUGIN_PATH = File.expand_path('../..', __FILE__)
-puts PLUGIN_PATH
+$plugin_path = File.expand_path('../..', __FILE__)
Vimrunner::RSpec.configure do |config|
# Use a single Vim instance for the test suite. Set to false to use an
@@ -15,7 +14,7 @@ Vimrunner::RSpec.configure do |config|
vim = Vimrunner.start
# Setup your plugin in the Vim instance
- vim.add_plugin(PLUGIN_PATH)
+ vim.add_plugin($plugin_path)
# The returned value is the Client available in the tests.
vim