Skip to content

Commit e5512d5

Browse files
committed
Merge pull request tpope#243 from graywh/patch-242
Fix view-to-view test navigation via :A
2 parents dca1fcb + 0f55f1d commit e5512d5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

autoload/rails.vim

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1243,8 +1243,7 @@ function! s:readable_test_file_candidates() dict abort
12431243
\ fnamemodify(f,':s?\<app/?spec/?')."_spec.rb",
12441244
\ fnamemodify(f,':r:s?\<app/?spec/?')."_spec.rb",
12451245
\ fnamemodify(f,':r:r:s?\<app/?spec/?')."_spec.rb",
1246-
\ s:sub(s:sub(dest,'<app/views/','test/functional/'),'/[^/]*$','_controller_test.rb')]
1247-
return [spec_format, spec_handler, spec_bare, test]
1246+
\ s:sub(s:sub(f,'<app/views/','test/functional/'),'/[^/]*$','_controller_test.rb')]
12481247
elseif self.type_name('controller-api')
12491248
let tests = [
12501249
\ s:sub(s:sub(f,'/controllers/','/apis/'),'_controller\.rb$','_api.rb')]

0 commit comments

Comments
 (0)