We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4307cc1 commit 906eb04Copy full SHA for 906eb04
autoload/rails.vim
@@ -1297,7 +1297,7 @@ function! s:readable_test_file_candidates() dict abort
1297
\ '<test/mailers/', 'test/functional/'),
1298
\ '<test/controllers/', 'test/functional/')
1299
let tests = s:uniq([test_file, old_test_file, spec_file])
1300
- elseif f =~# '\<\(test\|spec\)/\%(\1_helper\.rb$\|support\>\)' || f =~# '\%(\<spec/\)\@<!\<features/.*\.rb$'
+ elseif f =~# '\<\(test\|spec\)/\%(\1_helper\.rb$\|support\>\)' || f =~# '\%(\<spec/\|\<test/\)\@<!\<features/.*\.rb$'
1301
let tests = [matchstr(f, '.*\<\%(test\|spec\|features\)\>')]
1302
elseif self.type_name('test', 'spec', 'cucumber')
1303
let tests = [f]
0 commit comments