Sha256: d0b0a9807bb6254ff602793166eafee1591a570ea3b3b803a7dbf984909bbf1f
Contents?: true
Size: 545 Bytes
Versions: 17
Compression:
Stored size: 545 Bytes
Contents
$:.unshift File.join(File.dirname(__FILE__), "..", "lib") require 'test/unit' require 'rubygems' require 'mechanize' require 'test_includes' Thread.new { require 'proxy' } class ProxyTest < Test::Unit::TestCase include TestMethods def setup @agent = WWW::Mechanize.new end def test_proxy length = @agent.get("http://localhost:#{PORT}/find_link.html").body.length @agent.set_proxy('127.0.0.1', PROXYPORT) l2 = @agent.get("http://localhost:#{PORT}/find_link.html").body.length assert_equal(length, l2) end end
Version data entries
17 entries across 17 versions & 1 rubygems