Skip to content

Commit 81a5f3c

Browse files
committed
Support fixture_file_upload
Why do fixture_file_upload and file_fixture appear to be from completely different universes?
1 parent 371447d commit 81a5f3c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

autoload/rails.vim

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2342,6 +2342,9 @@ function! s:ruby_cfile() abort
23422342
let res = s:findamethod('fixtures','fixtures/\1.yml')
23432343
if res != ""|return res|endif
23442344

2345+
let res = s:findamethod('fixture_file_upload','fixtures/\1')
2346+
if res != ""|return res|endif
2347+
23452348
let res = s:findamethod('file_fixture','fixtures/files/\1')
23462349
if res != ""|return res|endif
23472350

@@ -3989,7 +3992,7 @@ function! rails#ruby_syntax() abort
39893992
syn match rubyTestAction '\.\@<!\<\%(get\|post\|put\|patch\|delete\|head\|process\)\>'
39903993
syn match rubyTestAction '\<follow_redirect!'
39913994
syn keyword rubyTestAction get_via_redirect post_via_redirect
3992-
syn keyword rubyTestHelper request response flash session cookies
3995+
syn keyword rubyTestHelper request response flash session cookies fixture_file_upload
39933996
endif
39943997
if buffer.type_name('test-system', 'spec-feature', 'cucumber')
39953998
syn keyword rubyTestHelper body current_host current_path current_scope current_url current_window html response_headers source status_code title windows

0 commit comments

Comments
 (0)