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

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

Overview

DSL methods

Instance Method Summary collapse

Instance Method Details

#render_views(true_or_false = true) ⇒ Object

21
22
23
# File 'lib/rspec/rails/view_rendering.rb', line 21
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.

Returns:

  • (Boolean)
26
27
28
29
30
31
32
33
34
# File 'lib/rspec/rails/view_rendering.rb', line 26
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