Add document_root_element to ActionDispatch::IntegrationTest so assert_select can be called without specifying a root.
This commit is contained in:
parent
6cb6290f5d
commit
5ffc36d476
@ -493,5 +493,9 @@ def url_options
|
||||
reset! unless integration_session
|
||||
integration_session.url_options
|
||||
end
|
||||
|
||||
def document_root_element
|
||||
html_document.root
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user