File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -311,7 +311,8 @@ def reset_activesupport_cache!
311311
312312 allow ( described_class ::ActiveSupportInflector ) . to receive ( :require )
313313 . with ( 'active_support/inflector' )
314- stub_const ( 'ActiveSupport::Inflector' , Module . new )
314+ stub_const ( 'ActiveSupport::Inflector' ,
315+ Module . new { def self . underscore ( _ ) ; end } )
315316
316317 allow ( described_class ::ActiveSupportInflector ) . to receive ( :require )
317318 . with ( './config/initializers/inflections.rb' )
@@ -395,7 +396,8 @@ def reset_activesupport_cache!
395396
396397 allow ( described_class ::ActiveSupportInflector ) . to receive ( :require )
397398 . with ( 'active_support/inflector' )
398- stub_const ( 'ActiveSupport::Inflector' , Module . new )
399+ stub_const ( 'ActiveSupport::Inflector' ,
400+ Module . new { def self . underscore ( _ ) ; end } )
399401
400402 allow ( described_class ::ActiveSupportInflector ) . to receive ( :require )
401403 . with ( cop_config [ 'InflectorPath' ] )
You can’t perform that action at this time.
0 commit comments