Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Release

  • Loading branch information...
commit fffa30b677e7de86b06eb09d4af1c878f484c960 1 parent 65140cd
@tpope authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  plugin/rails.vim
View
2  plugin/rails.vim
@@ -2005,6 +2005,8 @@ function! s:AlternateFile()
return file
elseif f == ''
call s:warn("No filename present")
+ elseif f =~ '\<test/unit/routing_test\.rb$'
+ return 'config/routes.rb'
elseif fnamemodify(f,":e") == "rb"
let file = fnamemodify(f,":r")
if file =~ '_\%(test\|spec\)$'
Please sign in to comment.
Something went wrong with that request. Please try again.