Skip to content

Commit 5e507fa

Browse files
committed
Recognize files in spec/support without _spec in the name.
1 parent c9a73db commit 5e507fa

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

autoload/rails.vim

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -708,6 +708,8 @@ function! s:readable_calculate_file_type() dict abort
708708
let r = "test"
709709
elseif f =~ '\<spec/.*_spec\.rb'
710710
let r = "spec"
711+
elseif f =~ '\<spec/support/.*\.rb'
712+
let r = "spec"
711713
elseif f =~ '\<db/migrate\>'
712714
let r = "db-migration"
713715
elseif f=~ '\<db/schema\.rb$'

0 commit comments

Comments
 (0)