Permalink
Browse files

using rake for focused tests

  • Loading branch information...
1 parent a654b55 commit 6b5ec39538f536ce022822c62efbd80c9762e77a @tenderlove committed Feb 23, 2009
Showing with 8 additions and 2 deletions.
  1. +1 −1 bin/ruby_run_focused_unit_test
  2. +7 −1 vimrc
@@ -5,7 +5,7 @@ line_number = ARGV[1].to_i
lines = File.read(filename).split(/\n/)
(line_number - 1).downto(0) do |i|
if lines[i] =~ /\s*def (test\S*)/
- cmd = %{ruby -I lib:ext:test "#{filename}" -n "#{$1}"}
+ cmd = %{rake1.9 test TEST="#{filename}" TESTOPTS="--name=#{$1}"}
puts cmd
system cmd
exit
View
8 vimrc
@@ -91,8 +91,14 @@ augroup RubyTests
autocmd BufRead,BufNewFile *_test.rb,test_*.rb
\ :nmap rt V:<C-U>!$HOME/.vim/bin/ruby_run_focused_unit_test
\ % <C-R>=line("'<")<CR>p <CR>|
- \ :nmap rT :<C-U>!ruby -I lib:ext:test %<CR>
+ \ :nmap rT :<C-U>!rake TEST=%<CR>
augroup END
map <Leader>rt :!ctags --extra=+f -R *<CR><CR>
set scrolloff=2
+"set foldmethod=syntax
+"let ruby_no_comment_fold=1
+"let c_no_comment_fold=1
+set ruler
+set laststatus=2
+set statusline=%t%(\ [%n%M]%)%(\ %H%R%W%)\ %(%c-%v,\ %l\ of\ %L,\ (%o)\ %P\ 0x%B\ (%b)%)

0 comments on commit 6b5ec39

Please sign in to comment.