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

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

Instance Method Summary collapse

Instance Method Details

#integrate_viewsObject



18
19
20
21
# File 'lib/rspec/rails/view_rendering.rb', line 18

def integrate_views
  RSpec.deprecate("integrate_views","render_views")
  render_views
end

#metadata_for_rspec_railsObject



9
10
11
# File 'lib/rspec/rails/view_rendering.rb', line 9

def 
  [:rspec_rails] ||= {}
end

#render_viewsObject

See RSpec::Rails::ControllerExampleGroup



14
15
16
# File 'lib/rspec/rails/view_rendering.rb', line 14

def render_views
  [:render_views] = true
end

#render_views?Boolean

Returns:

  • (Boolean)


23
24
25
# File 'lib/rspec/rails/view_rendering.rb', line 23

def render_views?
  !![:render_views]
end