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

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

Overview

DSL methods

Instance Method Summary (collapse)

Instance Method Details

- (Object) render_views(true_or_false = true)

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

- (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.

Returns:

  • (Boolean)
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