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

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

Instance Method Summary (collapse)

Instance Method Details

- (Object) integrate_views

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", :replacement => "render_views")
  render_views
end

- (Object) metadata_for_rspec_rails



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

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

- (Object) render_views(true_or_false = true)



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

- (Boolean) render_views?

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
52
53
# File 'lib/rspec/rails/view_rendering.rb', line 49

def render_views?
  .fetch(:render_views) do
    RSpec.configuration.render_views?
  end
end