diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-07-15 13:30:28 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-07-15 13:40:21 -0300 |
commit | 158a6dfcd28e8b59ff656fc78856e623b7c0f799 (patch) | |
tree | 379379846c41ddc29db4bed1a074e520451c025a /actionview/lib | |
parent | 126a15e0fe6a0021dd8bc37d32a2498a9c22cafd (diff) | |
download | rails-158a6dfcd28e8b59ff656fc78856e623b7c0f799.tar.gz rails-158a6dfcd28e8b59ff656fc78856e623b7c0f799.tar.bz2 rails-158a6dfcd28e8b59ff656fc78856e623b7c0f799.zip |
We don't need loofah for the assertions
We can just use nokogiri
Diffstat (limited to 'actionview/lib')
-rw-r--r-- | actionview/lib/action_view/test_case.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/actionview/lib/action_view/test_case.rb b/actionview/lib/action_view/test_case.rb index 2d54b90570..4c65860423 100644 --- a/actionview/lib/action_view/test_case.rb +++ b/actionview/lib/action_view/test_case.rb @@ -3,7 +3,6 @@ require 'action_controller' require 'action_controller/test_case' require 'action_view' -require 'loofah' require 'rails-dom-testing' module ActionView @@ -159,7 +158,7 @@ module ActionView # Need to experiment if this priority is the best one: rendered => output_buffer def document_root_element - @html_document ||= Loofah.document(@rendered.blank? ? @output_buffer : @rendered) + @html_document ||= Nokogiri::HTML::Document.parse(@rendered.blank? ? @output_buffer : @rendered) @html_document.root end |