Skip to content

Commit

Permalink
Readded html_document method since it is used integration tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
kaspth committed Jun 15, 2014
1 parent ab3a236 commit 63fc9f1
Showing 1 changed file with 5 additions and 1 deletion.
Expand Up @@ -329,12 +329,16 @@ def assert_size_match!(size, equals, selector, message = nil)
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:
Expand Down

0 comments on commit 63fc9f1

Please sign in to comment.