drewolson / ruby_focused_unit_test_vim

run a focused ruby unit test in vim

This URL has Read+Write access

pgr0ss (author)
Mon Sep 14 19:50:12 -0700 2009
commit  0671adf2987e5ad1ca1410965a8a3dad306b89d6
tree    bc4d367d992e7fb6b9d065d36f440765399ec800
parent  5fff369778ffcaf6797a54271aa4f5df6e5e7c51
name age message
file .gitignore Wed Feb 25 07:53:42 -0800 2009 added vim plugin [drewolson]
file README.txt Loading commit data...
file ruby_focused_unit_test.vim
README.txt
WHAT?

- Run the test/spec your cursor is currently on
- Run the context your cursor is currently in
- Run the entire test/spec you are working in
- Streaming output to a new buffer

This plugin currently supports
  - test/unit
  - dust
  - rspec
  - shoulda

HOW?

Use any of the commands below. Map them to shortcuts
in your .vimrc for easy access.

- commands
  - RunRubyFocusedUnitTest - run focused test/spec
  - RunRubyFocusedContext - run current context (rspec, shoulda)
  - RunAllRubyTests - run all the tests/specs in the current file

INSTALL

Just copy ruby_focused_unit_test.vim into ~/.vim/plugin. That's it!

REQUIREMENTS

- vim with ruby support (compiled +ruby)