MechanizeAdapter doesn't need to inherit from Session
This commit is contained in:
parent
0412543e5a
commit
17713c9036
|
@ -1,11 +1,15 @@
|
||||||
require "mechanize"
|
require "mechanize"
|
||||||
|
|
||||||
module Webrat #:nodoc:
|
module Webrat #:nodoc:
|
||||||
class MechanizeAdapter < Session #:nodoc:
|
class MechanizeAdapter #:nodoc:
|
||||||
|
extend Forwardable
|
||||||
|
|
||||||
attr_accessor :response
|
attr_accessor :response
|
||||||
alias :page :response
|
alias :page :response
|
||||||
|
|
||||||
|
def initialize(*args)
|
||||||
|
end
|
||||||
|
|
||||||
def request_page(url, http_method, data) #:nodoc:
|
def request_page(url, http_method, data) #:nodoc:
|
||||||
super(absolute_url(url), http_method, data)
|
super(absolute_url(url), http_method, data)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue