class RSpec::Rails::ViewRendering::EmptyTemplateResolver
@private
Public Class Methods
build(path)
click to toggle source
# File lib/rspec/rails/view_rendering.rb, line 44 def self.build(path) if path.is_a?(::ActionView::Resolver) ResolverDecorator.new(path) else FileSystemResolver.new(path) end end
nullify_template_rendering(templates)
click to toggle source
# File lib/rspec/rails/view_rendering.rb, line 52 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