test/chain/test_request_resolver.rb in mechanize-0.9.3 vs test/chain/test_request_resolver.rb in mechanize-1.0.0

- old
+ new

@@ -1,11 +1,11 @@ -require File.expand_path(File.join(File.dirname(__FILE__), '..', "helper")) +require "helper" class TestRequestResolver < Test::Unit::TestCase def test_handle_get - v = WWW::Mechanize::Chain.new([ - WWW::Mechanize::Chain::RequestResolver.new + v = Mechanize::Chain.new([ + Mechanize::Chain::RequestResolver.new ]) hash = { :uri => URI.parse('http://google.com'), :verb => :get } @@ -13,11 +13,11 @@ assert_kind_of(Net::HTTP::Get, hash[:request]) assert_equal('/', hash[:request].path) end def test_handle_post - v = WWW::Mechanize::Chain.new([ - WWW::Mechanize::Chain::RequestResolver.new + v = Mechanize::Chain.new([ + Mechanize::Chain::RequestResolver.new ]) hash = { :uri => URI.parse('http://google.com'), :verb => :post }