@@ -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\n class %STest < ActiveSupport::TestCase\n end" ,
21542154 \ ' test/models/' : " require 'test_helper'\n\n class %STest < ActiveSupport::TestCase\n end" ,
@@ -2157,7 +2157,7 @@ function! s:BufFinderCommands()
21572157 \ ' spec/helpers/' : " require 'spec_helper'\n\n describe %S do\n end" },
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\n class %STest < ActionController::TestCase\n end" ,
21632163 \ ' test/controllers/' : " require 'test_helper'\n\n class %STest < ActionController::TestCase\n end" ,
@@ -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\n class %STest < ActionDispatch::IntegrationTest\n end" ,
21812181 \ ' spec/requests/' : " require 'spec_helper'\n\n describe \" %h\" do\n end" ,
@@ -2857,7 +2857,7 @@ endfunction
28572857
28582858function ! 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