Module: RSpec::Rails::ViewRendering::EmptyTemplates Private
Do not use. This module is for internal use only.
Relationships & Source Files | |
Defined in: | rspec-rails/lib/rspec/rails/view_rendering.rb |
Overview
Used to null out view rendering in controller specs.
Instance Method Summary
- #append_view_path(new_path) Internal use only
- #prepend_view_path(new_path) Internal use only
- #_path_decorator(*paths) private Internal use only
Instance Method Details
#_path_decorator(*paths) (private)
[ GitHub ]# File 'rspec-rails/lib/rspec/rails/view_rendering.rb', line 139
def _path_decorator(*paths) paths.map { |path| EmptyTemplateResolver.build(path) } end
#append_view_path(new_path)
[ GitHub ]# File 'rspec-rails/lib/rspec/rails/view_rendering.rb', line 133
def append_view_path(new_path) super(_path_decorator(*new_path)) end
#prepend_view_path(new_path)
[ GitHub ]# File 'rspec-rails/lib/rspec/rails/view_rendering.rb', line 129
def prepend_view_path(new_path) super(_path_decorator(*new_path)) end