Module: ActionView::TestCase::Behavior::Locals
- Defined in:
- lib/action_view/test_case.rb
Instance Attribute Summary collapse
-
#locals ⇒ Object
Returns the value of attribute locals.
Instance Method Summary collapse
Instance Attribute Details
#locals ⇒ Object
Returns the value of attribute locals.
156 157 158 |
# File 'lib/action_view/test_case.rb', line 156 def locals @locals end |
Instance Method Details
#render(options = {}, local_assigns = {}) ⇒ Object
158 159 160 161 162 163 164 165 166 167 168 169 170 171 |
# File 'lib/action_view/test_case.rb', line 158 def render( = {}, local_assigns = {}) case when Hash if block_given? locals[[:layout]] = [:locals] elsif .key?(:partial) locals[[:partial]] = [:locals] end else locals[] = local_assigns end super end |