Skip to content

Commit

Permalink
Remove grep filtering, not needed
Browse files Browse the repository at this point in the history
  • Loading branch information
skwp committed Dec 21, 2011
1 parent 1fc2868 commit faa9e1c
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions plugin/vim-rspec.vim
Expand Up @@ -16,7 +16,6 @@
" * g:RspecOpts :: Opts to send to rspec call

let s:xsltproc_cmd = ""
let s:grep_cmd = ""
let s:hpricot_cmd = ""
let s:xslt = 0
let s:hpricot = 0
Expand All @@ -26,10 +25,6 @@ function! s:find_xslt()
return system("xsltproc --version | head -n1")
endfunction

function! s:find_grep()
return system("grep --version | head -n1")
endfunction

function! s:find_hpricot()
return system("gem search -i hpricot")
endfunction
Expand Down Expand Up @@ -82,13 +77,6 @@ function! s:RunSpecMain(type)
call s:error_msg("You need the hpricot gem or xsltproc to run this script.")
return
end
if len(s:grep_cmd)<1
let s:grep_cmd = s:find_grep()
if match(s:grep_cmd,'\d')<0
call s:error_msg("You need grep to run this script.")
return
end
end

" find the installed rspec command
let l:default_cmd = ""
Expand Down Expand Up @@ -149,7 +137,7 @@ function! s:RunSpecMain(type)
end

" run the spec command
let s:cmd = l:spec." | ".l:filter." | grep \"^[-\+\[\\#\\* ]\""
let s:cmd = l:spec." | ".l:filter
echo


Expand Down

0 comments on commit faa9e1c

Please sign in to comment.