Skip to content

Commit 906eb04

Browse files
committed
Don't treat test/features/*.rb as cucumber step
Closes tpope#415.
1 parent 4307cc1 commit 906eb04

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

autoload/rails.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1297,7 +1297,7 @@ function! s:readable_test_file_candidates() dict abort
12971297
\ '<test/mailers/', 'test/functional/'),
12981298
\ '<test/controllers/', 'test/functional/')
12991299
let tests = s:uniq([test_file, old_test_file, spec_file])
1300-
elseif f =~# '\<\(test\|spec\)/\%(\1_helper\.rb$\|support\>\)' || f =~# '\%(\<spec/\)\@<!\<features/.*\.rb$'
1300+
elseif f =~# '\<\(test\|spec\)/\%(\1_helper\.rb$\|support\>\)' || f =~# '\%(\<spec/\|\<test/\)\@<!\<features/.*\.rb$'
13011301
let tests = [matchstr(f, '.*\<\%(test\|spec\|features\)\>')]
13021302
elseif self.type_name('test', 'spec', 'cucumber')
13031303
let tests = [f]

0 commit comments

Comments
 (0)