Skip to content

Commit

Permalink
Release
Browse files Browse the repository at this point in the history
  • Loading branch information
tpope committed Jan 29, 2007
1 parent 65140cd commit fffa30b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions plugin/rails.vim
Expand Up @@ -2005,6 +2005,8 @@ function! s:AlternateFile()
return file return file
elseif f == '' elseif f == ''
call s:warn("No filename present") call s:warn("No filename present")
elseif f =~ '\<test/unit/routing_test\.rb$'
return 'config/routes.rb'
elseif fnamemodify(f,":e") == "rb" elseif fnamemodify(f,":e") == "rb"
let file = fnamemodify(f,":r") let file = fnamemodify(f,":r")
if file =~ '_\%(test\|spec\)$' if file =~ '_\%(test\|spec\)$'
Expand Down

0 comments on commit fffa30b

Please sign in to comment.