You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A simple Vim plugin to run specs: if the current file ends in `_spec.rb`, run it; if not, guess where the associated spec file is and run that.
4
+
A simple Vim plugin to run specs: if the current file ends in `_spec.rb` or
5
+
`_test.rb`, run it; if not, guess where the associated spec file is and run
6
+
that.
5
7
6
-
The plugin will attempt to automatically discover whether you are using [RSpec](https://www.relishapp.com/rspec) or [minitest/spec](http://docs.seattlerb.org/minitest/MiniTest/Spec.html) and use [Bundler](http://gembundler.com/) (and binstubs) if appropriate.
8
+
The plugin will attempt to automatically discover whether you are using
9
+
[RSpec](https://www.relishapp.com/rspec) or
10
+
[minitest/spec](http://docs.seattlerb.org/minitest/MiniTest/Spec.html) and use
11
+
[Bundler](http://gembundler.com/) (and binstubs) if appropriate.
7
12
8
13
Installation
9
14
------------
10
15
11
-
I recommend using [Vundle](https://github.com/gmarik/vundle) and then you can install the plugin by simply adding the following line to your `.vimrc`:
16
+
I recommend using [Vundle](https://github.com/gmarik/vundle) and then you can
17
+
install the plugin by simply adding the following line to your `.vimrc`:
12
18
13
19
```vim
14
20
Bundle 'mudge/runspec.vim'
@@ -17,8 +23,16 @@ Bundle 'mudge/runspec.vim'
17
23
Usage
18
24
-----
19
25
20
-
By default, the plugin will bind to `<Leader>t` but you can manually map to `<Plug>RunSpecRun` like so:
26
+
By default, the plugin will bind to `<Leader>t` if it is not already mapped but
27
+
you can manually map to `<Plug>RunSpecRun` like so:
21
28
22
29
```vim
23
30
map <Leader>r <Plug>RunSpecRun
24
31
```
32
+
33
+
Dependencies
34
+
------------
35
+
36
+
In order to detect your test runner accurately, the plugin requires that you are
37
+
using Bundler and have a valid `Gemfile.lock` (so that it can work with
0 commit comments