Skip to content

Commit 4a8e762

Browse files
committed
Rename "pattern" classification option to "format"
1 parent 27cf0cf commit 4a8e762

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

autoload/rails.vim

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2148,7 +2148,7 @@ function! s:BufFinderCommands()
21482148
\ 'rails#app().has(v:val[0])')
21492149
if !empty(tests)
21502150
call s:define_navcommand('unittest', {
2151-
\ 'pattern': map(copy(tests), 'v:val[1]'),
2151+
\ 'format': map(copy(tests), 'v:val[1]'),
21522152
\ 'template': {
21532153
\ 'test/unit/': "require 'test_helper'\n\nclass %STest < ActiveSupport::TestCase\nend",
21542154
\ 'test/models/': "require 'test_helper'\n\nclass %STest < ActiveSupport::TestCase\nend",
@@ -2157,7 +2157,7 @@ function! s:BufFinderCommands()
21572157
\ 'spec/helpers/': "require 'spec_helper'\n\ndescribe %S do\nend"},
21582158
\ 'affinity': 'model'})
21592159
call s:define_navcommand('functionaltest', {
2160-
\ 'pattern': map(copy(tests), 'v:val[2]'),
2160+
\ 'format': map(copy(tests), 'v:val[2]'),
21612161
\ 'template': {
21622162
\ 'test/functional/': "require 'test_helper'\n\nclass %STest < ActionController::TestCase\nend",
21632163
\ 'test/controllers/': "require 'test_helper'\n\nclass %STest < ActionController::TestCase\nend",
@@ -2175,7 +2175,7 @@ function! s:BufFinderCommands()
21752175
\ 'rails#app().has(v:val[0])'), 'v:val[1]')
21762176
if !empty(integration_tests)
21772177
call s:define_navcommand('integrationtest', {
2178-
\ 'pattern': integration_tests,
2178+
\ 'format': integration_tests,
21792179
\ 'template': {
21802180
\ 'test/integration/': "require 'test_helper'\n\nclass %STest < ActionDispatch::IntegrationTest\nend",
21812181
\ 'spec/requests/': "require 'spec_helper'\n\ndescribe \"%h\" do\nend",
@@ -2857,7 +2857,7 @@ endfunction
28572857

28582858
function! s:classification_pairs(options)
28592859
let pairs = []
2860-
if has_key(a:options, 'pattern')
2860+
if has_key(a:options, 'format')
28612861
for pattern in s:split(a:options.pattern)
28622862
let pairs += [s:split(pattern, '%s')]
28632863
endfor

0 commit comments

Comments
 (0)