class RSpec::Rails::ViewRendering::EmptyTemplateResolver

def self.nullify_template_rendering(templates)

def self.nullify_template_rendering(templates)
  templates.map do |template|
    ::ActionView::Template.new(
      "",
      template.identifier,
      EmptyTemplateHandler,
      virtual_path: template.virtual_path,
      format: template_format(template),
      locals: []
    )
  end
end