From 610f0fc2173a45f94e4d5d498501045615ac7ae0 Mon Sep 17 00:00:00 2001 From: Bryan Helmkamp Date: Wed, 19 Aug 2009 22:59:45 -0400 Subject: [PATCH] Webrat doesn't need to worry about StringIOs ...or, we're missing a test and this is going to help us find it --- lib/webrat/core/xml.rb | 6 ------ 1 file changed, 6 deletions(-) diff --git a/lib/webrat/core/xml.rb b/lib/webrat/core/xml.rb index 463b764..7ce42ac 100644 --- a/lib/webrat/core/xml.rb +++ b/lib/webrat/core/xml.rb @@ -10,8 +10,6 @@ module Webrat #:nodoc: stringlike elsif Nokogiri::XML::NodeSet === stringlike stringlike - elsif StringIO === stringlike - Nokogiri::HTML(stringlike.string) elsif stringlike.respond_to?(:body) Nokogiri::HTML(stringlike.body.to_s) else @@ -26,8 +24,6 @@ module Webrat #:nodoc: stringlike elsif Nokogiri::XML::NodeSet === stringlike stringlike - elsif StringIO === stringlike - Nokogiri::HTML(stringlike.string) elsif stringlike.respond_to?(:body) Nokogiri::HTML(stringlike.body.to_s) else @@ -42,8 +38,6 @@ module Webrat #:nodoc: stringlike elsif Nokogiri::XML::NodeSet === stringlike stringlike - elsif StringIO === stringlike - Nokogiri::XML(stringlike.string) elsif stringlike.respond_to?(:body) Nokogiri::XML(stringlike.body.to_s) else