Module: ActionView::TestCase::Behavior::Locals

Defined in:
lib/action_view/test_case.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#localsObject

Returns the value of attribute locals.



141
142
143
# File 'lib/action_view/test_case.rb', line 141

def locals
  @locals
end

Instance Method Details

#_render_partial(options) ⇒ Object



143
144
145
146
# File 'lib/action_view/test_case.rb', line 143

def _render_partial(options)
  locals[options[:partial]] = options[:locals]
  super(options)
end