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.
151 152 153 |
# File 'lib/action_view/test_case.rb', line 151 def locals @locals end |
Instance Method Details
#render(options = {}, local_assigns = {}) ⇒ Object
153 154 155 156 157 158 159 160 161 162 163 164 165 166 |
# File 'lib/action_view/test_case.rb', line 153 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 |