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

Defined in:
actionpack/lib/action_view/test_case.rb

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Instance Attribute Details

- (Object) locals

Returns the value of attribute locals



145
146
147
# File 'actionpack/lib/action_view/test_case.rb', line 145

def locals
  @locals
end

Instance Method Details

- (Object) _render_partial(options)



147
148
149
150
# File 'actionpack/lib/action_view/test_case.rb', line 147

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