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