summaryrefslogtreecommitdiffstats
path: root/spec/spec_helper.rb
diff options
context:
space:
mode:
authorAdam Stankiewicz <sheerun@sher.pl>2013-09-14 20:42:27 +0200
committerAdam Stankiewicz <sheerun@sher.pl>2013-09-14 20:42:27 +0200
commit0ac0389039fa782316fd791b4bf174dd02b9725f (patch)
treedd073e59dd41fe35c12cbb608270f8bf74750d74 /spec/spec_helper.rb
parent4bf3f6c300255a472d4bca9acbbb67b7f396a527 (diff)
downloadvim-polyglot-0ac0389039fa782316fd791b4bf174dd02b9725f.tar.gz
vim-polyglot-0ac0389039fa782316fd791b4bf174dd02b9725f.zip
Add simple spec for build script
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