Module: RSpec::Rails::ViewRendering::ClassMethods Private

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

Overview

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

DSL methods

Instance Method Summary collapse

Instance Method Details

#render_views(true_or_false = true) ⇒ 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.



14
15
16
# File 'lib/rspec/rails/view_rendering.rb', line 14

def render_views(true_or_false = true)
  @render_views = true_or_false
end

#render_views?Boolean

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.



19
20
21
22
23
24
25
26
27
# File 'lib/rspec/rails/view_rendering.rb', line 19

def render_views?
  return @render_views if defined?(@render_views)

  if superclass.respond_to?(:render_views?)
    superclass.render_views?
  else
    RSpec.configuration.render_views?
  end
end