Webrat doesn't need to worry about StringIOs

...or, we're missing a test and this is going to help us find it
This commit is contained in:
Bryan Helmkamp 2009-08-19 22:59:45 -04:00
parent 11f30d1d2e
commit 610f0fc217
1 changed files with 0 additions and 6 deletions

View File

@ -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