class RSpec::Rails::ViewRendering::EmptyTemplateResolver

@private

def self.build(path)

def self.build(path)
  if path.is_a?(::ActionView::Resolver)
    ResolverDecorator.new(path)
  else
    FileSystemResolver.new(path)
  end
end

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

def self.template_format(template)

def self.template_format(template)
  template.format
end