Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

The WWW namespace is deprecated as of Mechanize 1.0.

[#368 state:resolved]
  • Loading branch information...
commit 4c62279fc1e7b7305a8726aefe20526ba2b63254 1 parent deccefa
@djanowski djanowski authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/webrat/adapters/mechanize.rb
View
4 lib/webrat/adapters/mechanize.rb
@@ -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 @@ def response_code
end
def mechanize
- @mechanize ||= WWW::Mechanize.new
+ @mechanize ||= Mechanize.new
end
def_delegators :mechanize, :basic_auth
Please sign in to comment.
Something went wrong with that request. Please try again.