Module: RSpec::Rails::ViewRendering
- Extended by:
- ActiveSupport::Concern
- Included in:
- ControllerExampleGroup
- Defined in:
- lib/rspec/rails/view_rendering.rb
Defined Under Namespace
Modules: ClassMethods, EmptyTemplates Classes: EmptyTemplateHandler, EmptyTemplatePathSetDecorator
Instance Attribute Summary (collapse)
-
- (Object) controller
Returns the value of attribute controller.
Instance Method Summary (collapse)
- - (Boolean) render_views? private
Instance Attribute Details
- (Object) controller
Returns the value of attribute controller
30 31 32 |
# File 'lib/rspec/rails/view_rendering.rb', line 30 def controller @controller end |
Instance Method Details
- (Boolean) render_views?
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.
57 58 59 |
# File 'lib/rspec/rails/view_rendering.rb', line 57 def render_views? self.class.render_views? || !controller.class.respond_to?(:view_paths) end |