sponsor Vim development Vim logo Vim Book Ad

Vim Rspec : Enable the use of the spec command inside Vim

 script karma  Rating 16/10, Downloaded by 1862  Comments, bugs, improvements  Vim wiki

created by
Eustaquio Rangel de Oliveira Jr.
 
script type
utility
 
description
This plugin make easy to run the spec command inside Vim. You need Hpricot (http://wiki.github.com/why/hpricot)  OR xsltproc (http://www.xmlsoft.org/XSLT/xsltproc2.html) and grep (http://www.gnu.org/software/grep) to use it. Hpricot takes precedence over xsltproc.
There are four files on the package: the Vim script, the Ruby script, the XSL file and the syntax file.

There are two commands available:

You can run RunSpec and spec will run with the current file (if it's a *_spec.rb file)
You can run RunSpecs and spec will run with all the files inside the spec directory.

After some of the commands above runs, it will open a new window with the result, where you can click on the error lines where there's a file path with the line number and it will open on a new window, moving the cursor to the line where the error is.

Of course, you can create some mappings to make easier to call the commands.

The project is hosted at Github: http://github.com/taq/vim-rspec
 
install details
To install, unpack the files on your ~/.vim directory and source it to make it available. You can also use the Makefile to install the files, just type:
make install
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
vim-rspec-0.0.6.zip 0.0.6 2010-10-28 7.0 Eustaquio Rangel de Oliveira Jr. Finds the current Rspec (spec or rspec) and have options now to customize commands and files.
vim-rspec-0.0.5.zip 0.0.5 2009-03-06 7.0 Eustaquio Rangel de Oliveira Jr. Added folding to the passed specs.
vim-rspec-0.0.4.zip 0.0.4 2009-03-05 7.0 Eustaquio Rangel de Oliveira Jr. Implemented parsing with hpricot.
vim-rspec-0.0.3.zip 0.0.3 2009-03-04 7.0 Eustaquio Rangel de Oliveira Jr. Implemented the 'not implemented' status.
vim-rspec-0.0.2.zip 0.0.2 2009-03-03 7.2 Eustaquio Rangel de Oliveira Jr. Initial upload
ip used for rating: 3.135.205.164

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
Vim at Github