From 158a6dfcd28e8b59ff656fc78856e623b7c0f799 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Rafael=20Mendon=C3=A7a=20Fran=C3=A7a?=
 <rafaelmfranca@gmail.com>
Date: Tue, 15 Jul 2014 13:30:28 -0300
Subject: We don't need loofah for the assertions

We can just use nokogiri
---
 actionpack/lib/action_dispatch/testing/assertions.rb | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

(limited to 'actionpack/lib/action_dispatch')

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
-- 
cgit v1.2.3