instance method
document_root_element
Ruby on Rails 7.2.3
Since v4.2.9 PrivateSignature
document_root_element()
Need to experiment if this priority is the best one: rendered => output_buffer
Source
# File actionview/lib/action_view/test_case.rb, line 331
def document_root_element
Rails::Dom::Testing.html_document.parse(@rendered.blank? ? @output_buffer.to_str : @rendered).root
end
Defined in actionview/lib/action_view/test_case.rb line 331
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionView::TestCase::Behavior