http://www.vim.org/scripts/script.php?script_id=2612
Installation
------------
Copy all files to your ~/.vim directory.
Usage
-----
After installation, press
example:
$ cd
$ vim test/unit/user_test.rb
(move cursor into a test case, press
(
You can customize the command which will be used to run the test case by settting these options in your vimrc file:
let g:rubytest_cmd_test = "ruby %p"
let g:rubytest_cmd_testcase = "ruby %p -n '/%c/'"
let g:rubytest_cmd_spec = "spec -f specdoc %p"
let g:rubytest_cmd_example = "spec -f specdoc %p -e '%c'"
(%p will be replaced by the path of test file, %c will be replaced by the name of test case under cursor)
Default Key Bindings
--------------------
You can change default key bindings:
map
map
http://www.vim.org/scripts/script.php?script_id=2612
No comments:
Post a Comment