Revisions
-
sfsekaran revised this gist
Apr 6, 2011 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -16,6 +16,6 @@ endfunction " Mappings " run one rspec example or describe block based on cursor position map !s :call RunSpec("-l " . <C-r>=line('.')<CR>) " run full rspec file map !S :call RunSpec("") -
sfsekaran revised this gist
Apr 6, 2011 . 1 changed file with 13 additions and 9 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,17 +1,21 @@ " Execute open rspec buffer " Thanks to Ian Smith-Heisters function! RunSpec(args) if exists("b:rails_root") if filereadable(b:rails_root . "/Gemfile") let spec = "bundle exec rspec" elseif filereadable(b:rails_root . "/script/spec") let spec = b:rails_root . "/script/spec" else let spec = "rspec" end end let cmd = ":! " . spec . " % -cfn " . a:args execute cmd endfunction " Mappings " run one rspec example or describe block based on cursor position map !r :call RunSpec("-l " . <C-r>=line('.')<CR>) " run full rspec file map !R :call RunSpec("") -
samg renamed this gist
Aug 27, 2009 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
samg created this gist
Aug 27, 2009 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,17 @@ " Execute open rspec buffer " Thanks to Ian Smith-Heisters function! RunSpec(args) if exists("b:rails_root") && filereadable(b:rails_root . "/script/spec") let spec = b:rails_root . "/script/spec" else let spec = "spec" end let cmd = ":! " . spec . " % -cfn " . a:args execute cmd endfunction " Mappings " run one rspec example or describe block based on cursor position map !s :call RunSpec("-l " . <C-r>=line('.')<CR>) " run full rspec file map !S :call RunSpec("")