MechanizeAdapter doesn't need to inherit from Session

This commit is contained in:
Bryan Helmkamp 2009-08-12 21:39:32 -04:00
parent 0412543e5a
commit 17713c9036

View File

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