Module: RSpec::Rails::ViewRendering::ClassMethods
- Defined in:
- lib/rspec/rails/view_rendering.rb
Instance Method Summary collapse
- #integrate_views ⇒ Object
- #metadata_for_rspec_rails ⇒ Object
-
#render_views(true_or_false = true) ⇒ Object
See RSpec::Rails::ControllerExampleGroup.
- #render_views? ⇒ Boolean
Instance Method Details
#integrate_views ⇒ Object
34 35 36 37 |
# File 'lib/rspec/rails/view_rendering.rb', line 34 def integrate_views RSpec.deprecate("integrate_views","render_views") render_views end |
#metadata_for_rspec_rails ⇒ Object
25 26 27 |
# File 'lib/rspec/rails/view_rendering.rb', line 25 def [:rspec_rails] ||= {} end |
#render_views(true_or_false = true) ⇒ Object
See RSpec::Rails::ControllerExampleGroup
30 31 32 |
# File 'lib/rspec/rails/view_rendering.rb', line 30 def render_views(true_or_false=true) [:render_views] = true_or_false end |
#render_views? ⇒ Boolean
39 40 41 |
# File 'lib/rspec/rails/view_rendering.rb', line 39 def render_views? [:render_views] || RSpec.configuration.render_views? end |