The WWW namespace is deprecated as of Mechanize 1.0.

[#368 state:resolved]
This commit is contained in:
Damian Janowski 2010-04-12 23:36:50 -03:00
parent deccefa2c3
commit 4c62279fc1

View File

@ -4,6 +4,8 @@ module Webrat #:nodoc:
class MechanizeAdapter #:nodoc:
extend Forwardable
Mechanize = WWW::Mechanize if defined?(WWW::Mechanize)
attr_accessor :response
alias :page :response
@ -40,7 +42,7 @@ module Webrat #:nodoc:
end
def mechanize
@mechanize ||= WWW::Mechanize.new
@mechanize ||= Mechanize.new
end
def_delegators :mechanize, :basic_auth