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
- #render_views? ⇒ Boolean readonly Internal use only Internal use only
Instance Method Summary
- #render_views(true_or_false = true) readonly
Instance Attribute Details
#render_views? ⇒ Boolean
(readonly)
This method is for internal use only.
# 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)
# File 'rspec-rails/lib/rspec/rails/view_rendering.rb', line 21
def render_views(true_or_false = true) @render_views = true_or_false end