Module: ActionView::TestCase::Behavior::Locals
- Defined in:
- lib/action_view/test_case.rb
Instance Attribute Summary collapse
-
#rendered_views ⇒ Object
Returns the value of attribute rendered_views.
Instance Method Summary collapse
Instance Attribute Details
#rendered_views ⇒ Object
Returns the value of attribute rendered_views.
184 185 186 |
# File 'lib/action_view/test_case.rb', line 184 def rendered_views @rendered_views end |
Instance Method Details
#render(options = {}, local_assigns = {}) ⇒ Object
186 187 188 189 190 191 192 193 194 195 196 197 198 199 |
# File 'lib/action_view/test_case.rb', line 186 def render( = {}, local_assigns = {}) case when Hash if block_given? rendered_views.add [:layout], [:locals] elsif .key?(:partial) rendered_views.add [:partial], [:locals] end else rendered_views.add , local_assigns end super end |