Browse files

updated readme and made names correct

  • Loading branch information...
1 parent fcf6549 commit 3f2e15e83d188dfd33bd2561f97711eccf336ff7 @drewolson drewolson committed Feb 26, 2009
Showing with 24 additions and 12 deletions.
  1. +0 −8 README
  2. +20 −0 README.txt
  3. +4 −4 ruby_focused_unit_test.vim
View
8 README
@@ -1,8 +0,0 @@
-WHAT?
-
-run focused ruby unit test in vim
-
-HOW?
-
-INSTALL
-
View
20 README.txt
@@ -0,0 +1,20 @@
+WHAT?
+
+This plugin allows you to run the test/spec that your cursor currently sits
+on, and ONLY that test/spec. It will ignore all other tests/specs in the
+current file.
+
+This plugin currently supports
+ - test/unit
+ - dust
+ - rspec
+
+HOW?
+
+Simply place your cursor within the test/spec you want to run and execute
+:RunRubyFocusedUnitTest. Feel free to map this command for convenience.
+
+INSTALL
+
+Just copy ruby_focused_unit_test.vim into ~/.vim/plugin. That's it!
+
View
8 ruby_focused_unit_test.vim
@@ -1,11 +1,11 @@
-command RunFocusedRubyUnitTest :call <SID>RunFocusedRubyUnitTest()
+command RunRubyFocusedUnitTest :call <SID>RunRubyFocusedUnitTest()
-function! s:RunFocusedRubyUnitTest()
- ruby FocusedRubyUnitTest.new.run_test
+function! s:RunRubyFocusedUnitTest()
+ ruby RubyFocusedUnitTest.new.run_test
endfunction
ruby << EOF
-class FocusedRubyUnitTest
+class RubyFocusedUnitTest
def run_test
@file_name = VIM::Buffer.current.name
@line_number = VIM::Buffer.current.line_number

0 comments on commit 3f2e15e

Please sign in to comment.