Parent

Methods

Class/Module Index [+]

Quicksearch

RSpec::Rails::ViewRendering::EmptyTemplatePathSetDecorator

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

Attributes

original_path_set[R]

Public Class Methods

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

Public Instance Methods

find_all(*args) click to toggle source

@api private

# File lib/rspec/rails/view_rendering.rb, line 69
def find_all(*args)
  original_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.