The WWW namespace is deprecated as of Mechanize 1.0.
[#368 state:resolved]
This commit is contained in:
parent
deccefa2c3
commit
4c62279fc1
@ -4,6 +4,8 @@ module Webrat #:nodoc:
|
|||||||
class MechanizeAdapter #:nodoc:
|
class MechanizeAdapter #:nodoc:
|
||||||
extend Forwardable
|
extend Forwardable
|
||||||
|
|
||||||
|
Mechanize = WWW::Mechanize if defined?(WWW::Mechanize)
|
||||||
|
|
||||||
attr_accessor :response
|
attr_accessor :response
|
||||||
alias :page :response
|
alias :page :response
|
||||||
|
|
||||||
@ -40,7 +42,7 @@ module Webrat #:nodoc:
|
|||||||
end
|
end
|
||||||
|
|
||||||
def mechanize
|
def mechanize
|
||||||
@mechanize ||= WWW::Mechanize.new
|
@mechanize ||= Mechanize.new
|
||||||
end
|
end
|
||||||
|
|
||||||
def_delegators :mechanize, :basic_auth
|
def_delegators :mechanize, :basic_auth
|
||||||
|
Loading…
Reference in New Issue
Block a user