class RSpec::Rails::ViewRendering::EmptyTemplatePathSetDecorator

Delegates #find_all to the submitted path set and then returns templates with modified source

@private

Attributes

original_path_set[R]

Public Class Methods

new(original_path_set) click to toggle source
# File lib/rspec/rails/view_rendering.rb, line 48
def initialize(original_path_set)
  @original_path_set = original_path_set
end

Public Instance Methods

find_all(*args) click to toggle source
# File lib/rspec/rails/view_rendering.rb, line 52
def find_all(*args)
  original_path_set.find_all(*args).map do |template|
    ::ActionView::Template.new(
      "",
      template.identifier,
      EmptyTemplateHandler,
      :virtual_path => template.virtual_path,
      :format => template.formats
    )
  end
end