Module: Rspec::Rails23::Controllers::RenderOverrides

Defined in:
lib/rspec/rails23/controllers.rb

Instance Method Summary collapse

Instance Method Details

#render(options = nil, extra_options = {}, &block) ⇒ Object



58
59
60
61
62
63
64
65
66
# File 'lib/rspec/rails23/controllers.rb', line 58

def render(options=nil, extra_options={}, &block)
  unless block_given?
    unless rendering_views?
      @template.extend TemplateIsolationExtensions
    end
  end
 
  super
end

#render_views!Object



50
51
52
# File 'lib/rspec/rails23/controllers.rb', line 50

def render_views!
  @render_views = true
end

#rendering_views?Boolean

Returns:

  • (Boolean)


54
55
56
# File 'lib/rspec/rails23/controllers.rb', line 54

def rendering_views?
  @render_views
end