Parent

Methods

Files

Class/Module Index [+]

Quicksearch

RSpec::Rails::ViewRendering::PathSetDelegatorResolver

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

Attributes

path_set[R]

Public Class Methods

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

Public Instance Methods

find_all(*args) click to toggle source
# File lib/rspec/rails/view_rendering.rb, line 38
def find_all(*args)
  path_set.find_all(*args).collect do |template|
    ::ActionView::Template.new(
      "",
      template.identifier,
      template.handler,
      {
        :virtual_path => template.virtual_path,
        :format => template.formats
      }
    )
  end
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.