module RSpec::Rails::ViewRendering::EmptyTemplates

Used to null out view rendering in controller specs.

@private

Public Instance Methods

append_view_path(new_path) click to toggle source
# File lib/rspec/rails/view_rendering.rb, line 131
def append_view_path(new_path)
  lookup_context.view_paths.push(*_path_decorator(*new_path))
end
prepend_view_path(new_path) click to toggle source
# File lib/rspec/rails/view_rendering.rb, line 127
def prepend_view_path(new_path)
  lookup_context.view_paths.unshift(*_path_decorator(*new_path))
end

Private Instance Methods

_path_decorator(*paths) click to toggle source
# File lib/rspec/rails/view_rendering.rb, line 137
def _path_decorator(*paths)
  paths.map { |path| EmptyTemplateResolver.build(path) }
end