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.



93
94
95
# File 'lib/rspec/rails/view_rendering.rb', line 93

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.



88
89
90
# File 'lib/rspec/rails/view_rendering.rb', line 88

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