From 63fc9f1f4f42c962c59ef9068d8542552ce0f887 Mon Sep 17 00:00:00 2001 From: Timm Date: Tue, 23 Jul 2013 19:31:24 +0200 Subject: Readded html_document method since it is used integration tests. --- actionpack/lib/action_dispatch/testing/assertions/selector.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'actionpack/lib/action_dispatch/testing/assertions/selector.rb') diff --git a/actionpack/lib/action_dispatch/testing/assertions/selector.rb b/actionpack/lib/action_dispatch/testing/assertions/selector.rb index ff7b611228..5045197415 100644 --- a/actionpack/lib/action_dispatch/testing/assertions/selector.rb +++ b/actionpack/lib/action_dispatch/testing/assertions/selector.rb @@ -329,12 +329,16 @@ module ActionDispatch end def response_from_page + html_document.root + end + + # +html_document+ is used in testing/integration.rb + def html_document @html_document ||= if @response.content_type =~ /xml$/ Loofah.xml_document(@response.body) else Loofah.document(@response.body) end - @html_document.root end class ArgumentFilter #:nodoc: -- cgit v1.2.3