aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib
diff options
context:
space:
mode:
Diffstat (limited to 'actionpack/lib')
-rw-r--r--actionpack/lib/action_controller/test_case.rb1
-rw-r--r--actionpack/lib/action_dispatch/testing/assertions.rb5
2 files changed, 2 insertions, 4 deletions
diff --git a/actionpack/lib/action_controller/test_case.rb b/actionpack/lib/action_controller/test_case.rb
index e8c570d68f..4c237b15a4 100644
--- a/actionpack/lib/action_controller/test_case.rb
+++ b/actionpack/lib/action_controller/test_case.rb
@@ -3,7 +3,6 @@ require 'active_support/core_ext/object/to_query'
require 'active_support/core_ext/module/anonymous'
require 'active_support/core_ext/hash/keys'
-require 'loofah'
require 'rails-dom-testing'
module ActionController
diff --git a/actionpack/lib/action_dispatch/testing/assertions.rb b/actionpack/lib/action_dispatch/testing/assertions.rb
index 44815a75a8..f325c35b57 100644
--- a/actionpack/lib/action_dispatch/testing/assertions.rb
+++ b/actionpack/lib/action_dispatch/testing/assertions.rb
@@ -1,4 +1,3 @@
-require 'loofah'
require 'rails-dom-testing'
module ActionDispatch
@@ -14,9 +13,9 @@ module ActionDispatch
def html_document
@html_document ||= if @response.content_type =~ /xml$/
- Loofah.xml_document(@response.body)
+ Nokogiri::XML::Document.parse(@response.body)
else
- Loofah.document(@response.body)
+ Nokogiri::HTML::Document.parse(@response.body)
end
end
end