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.



20
21
22
# File 'lib/rspec/rails/view_rendering.rb', line 20

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)


25
26
27
28
29
30
31
32
33
# File 'lib/rspec/rails/view_rendering.rb', line 25

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