Module: RSpec::Rails::ViewRendering::EmptyTemplates

Defined in:
lib/rspec/rails/view_rendering.rb

Instance Method Summary collapse

Instance Method Details

#append_view_path(new_path) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



91
92
93
# File 'lib/rspec/rails/view_rendering.rb', line 91

def append_view_path(new_path)
  lookup_context.view_paths.push(*_path_decorator(new_path))
end

#prepend_view_path(new_path) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



86
87
88
# File 'lib/rspec/rails/view_rendering.rb', line 86

def prepend_view_path(new_path)
  lookup_context.view_paths.unshift(*_path_decorator(new_path))
end