123456789_123456789_123456789_123456789_123456789_

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

Relationships & Source Files
Extension / Inclusion / Inheritance Descendants
Extended In:
Defined in: rspec-rails/lib/rspec/rails/view_rendering.rb

Overview

DSL methods

Instance Attribute Summary

Instance Method Summary

Instance Attribute Details

#render_views?Boolean (readonly)

This method is for internal use only.
[ GitHub ]

  
# File 'rspec-rails/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

Instance Method Details

#render_views(true_or_false = true) (readonly)

[ GitHub ]

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

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