summaryrefslogtreecommitdiffstats
path: root/.vim/bundle/vim-multiple-cursors/spec/spec_helper.rb
diff options
context:
space:
mode:
authorLuke <luke@lukesmith.xyz>2018-01-21 19:52:37 -0700
committerLuke <luke@lukesmith.xyz>2018-01-21 19:52:37 -0700
commit51ef581bde5a98050db31343f7ef8c9d85136b22 (patch)
tree37f9f0dc8e621431e05dabd553a4aa2977dd8c98 /.vim/bundle/vim-multiple-cursors/spec/spec_helper.rb
parentfe22a1e23348e266b77aa65d0ce63e19e74c604e (diff)
downloadeibhear-51ef581bde5a98050db31343f7ef8c9d85136b22.tar.gz
eibhear-51ef581bde5a98050db31343f7ef8c9d85136b22.tar.zst
eibhear-51ef581bde5a98050db31343f7ef8c9d85136b22.zip
vim files added
Diffstat (limited to '.vim/bundle/vim-multiple-cursors/spec/spec_helper.rb')
-rw-r--r--.vim/bundle/vim-multiple-cursors/spec/spec_helper.rb25
1 files changed, 25 insertions, 0 deletions
diff --git a/.vim/bundle/vim-multiple-cursors/spec/spec_helper.rb b/.vim/bundle/vim-multiple-cursors/spec/spec_helper.rb
new file mode 100644
index 0000000..4e0ad99
--- /dev/null
+++ b/.vim/bundle/vim-multiple-cursors/spec/spec_helper.rb
@@ -0,0 +1,25 @@
+require 'vimrunner'
+require 'vimrunner/rspec'
+
+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 = false
+
+ # 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
+
+ # Or, start a GUI instance:
+ vim = Vimrunner.start_gvim
+
+ # Setup your plugin in the Vim instance
+ plugin_path = File.expand_path('../..', __FILE__)
+ vim.add_plugin(plugin_path, 'plugin/multiple_cursors.vim')
+
+ # The returned value is the Client available in the tests.
+ vim
+ end
+end