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.formats ) end end