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

- old
+ new

@@ -1,10 +1,10 @@ -require File.expand_path(File.join(File.dirname(__FILE__), '..', "helper")) +require "helper" class TestURIResolver < Test::Unit::TestCase def test_handle - v = WWW::Mechanize::Chain.new([ - WWW::Mechanize::Chain::URIResolver.new(Hash.new { |h,k| + v = Mechanize::Chain.new([ + Mechanize::Chain::URIResolver.new(Hash.new { |h,k| h[k] = lambda { |u,r| u } }) ]) assert_raises(ArgumentError) { v.handle({}) } assert_nothing_raised { v.handle({:uri => 'http://google.com/'}) }