123456789_123456789_123456789_123456789_123456789_

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

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