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

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

Instance Method Summary collapse

Instance Method Details

#integrate_viewsObject



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_railsObject



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

Returns:

  • (Boolean)


39
40
41
# File 'lib/rspec/rails/view_rendering.rb', line 39

def render_views?
  [:render_views] || RSpec.configuration.render_views?
end