Skip to content

Commit 69017c7

Browse files
committed
Allow Capybara-style integration specs
Closes tpope#240.
1 parent b9c76a1 commit 69017c7

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
@@ -1273,7 +1273,7 @@ function! s:readable_test_file_candidates() dict abort
12731273
\ '<test/mailers/', 'test/functional/'),
12741274
\ '<test/controllers/', 'test/functional/')
12751275
let tests = s:uniq([test_file, old_test_file, spec_file])
1276-
elseif f =~# '\<\(test\|spec\)/\%(\1_helper\.rb$\|support\>\)' || f =~# '\<features/.*\.rb$'
1276+
elseif f =~# '\<\(test\|spec\)/\%(\1_helper\.rb$\|support\>\)' || f =~# '\%(\<spec/\)\@<!\<features/.*\.rb$'
12771277
let tests = [matchstr(f, '.*\<\%(test\|spec\|features\)\>')]
12781278
elseif self.type_name('test', 'spec', 'cucumber')
12791279
let tests = [f]

0 commit comments

Comments
 (0)