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 b9c76a1 commit 69017c7Copy full SHA for 69017c7
autoload/rails.vim
@@ -1273,7 +1273,7 @@ function! s:readable_test_file_candidates() dict abort
1273
\ '<test/mailers/', 'test/functional/'),
1274
\ '<test/controllers/', 'test/functional/')
1275
let tests = s:uniq([test_file, old_test_file, spec_file])
1276
- elseif f =~# '\<\(test\|spec\)/\%(\1_helper\.rb$\|support\>\)' || f =~# '\<features/.*\.rb$'
+ elseif f =~# '\<\(test\|spec\)/\%(\1_helper\.rb$\|support\>\)' || f =~# '\%(\<spec/\)\@<!\<features/.*\.rb$'
1277
let tests = [matchstr(f, '.*\<\%(test\|spec\|features\)\>')]
1278
elseif self.type_name('test', 'spec', 'cucumber')
1279
let tests = [f]
0 commit comments