diff options
author | Timm <kaspth@gmail.com> | 2014-05-28 09:51:41 +0200 |
---|---|---|
committer | Timm <kaspth@gmail.com> | 2014-06-16 21:04:25 +0200 |
commit | 5ffc36d476be7f463e5cc275192181da7b94a56e (patch) | |
tree | 4bd3774595b9be93af1dbcc8ab35d6556a4f7151 /actionpack/lib | |
parent | 6cb6290f5ddd3001da56e767581c3b277367574a (diff) | |
download | rails-5ffc36d476be7f463e5cc275192181da7b94a56e.tar.gz rails-5ffc36d476be7f463e5cc275192181da7b94a56e.tar.bz2 rails-5ffc36d476be7f463e5cc275192181da7b94a56e.zip |
Add document_root_element to ActionDispatch::IntegrationTest so assert_select can be called without specifying a root.
Diffstat (limited to 'actionpack/lib')
-rw-r--r-- | actionpack/lib/action_dispatch/testing/integration.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/actionpack/lib/action_dispatch/testing/integration.rb b/actionpack/lib/action_dispatch/testing/integration.rb index af3bc26691..05d74e6a27 100644 --- a/actionpack/lib/action_dispatch/testing/integration.rb +++ b/actionpack/lib/action_dispatch/testing/integration.rb @@ -493,5 +493,9 @@ module ActionDispatch reset! unless integration_session integration_session.url_options end + + def document_root_element + html_document.root + end end end |