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 118 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 114 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 124 def _path_decorator(*paths) paths.map { |path| EmptyTemplateResolver.build(path) } end