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

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

Instance Method Summary collapse

Instance Method Details

#integrate_viewsObject

Deprecated.

Use ‘render_views` instead.



43
44
45
46
# File 'lib/rspec/rails/view_rendering.rb', line 43

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

#metadata_for_rspec_railsObject



33
34
35
# File 'lib/rspec/rails/view_rendering.rb', line 33

def 
  [:rspec_rails] = [:rspec_rails] ? [:rspec_rails].dup : {}
end

#render_views(true_or_false = true) ⇒ Object



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

def render_views(true_or_false=true)
  [:render_views] = true_or_false
end

#render_views?Boolean

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns:

  • (Boolean)


49
50
51
# File 'lib/rspec/rails/view_rendering.rb', line 49

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