Module: ActionView::TestCase::Behavior::Locals
Relationships & Source Files | |
Defined in: | actionview/lib/action_view/test_case.rb |
Instance Attribute Summary
Instance Method Summary
Instance Attribute Details
#rendered_views (rw)
[ GitHub ]# File 'actionview/lib/action_view/test_case.rb', line 337
attr_accessor :rendered_views
Instance Method Details
#render(options = {}, local_assigns = {})
[ GitHub ]# File 'actionview/lib/action_view/test_case.rb', line 339
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