Sha256: a23a5df8bcb3826783ce7db3449212a2a3c8a78186bc31343da2b2d7cf4c922f
Contents?: true
Size: 439 Bytes
Versions: 15
Compression:
Stored size: 439 Bytes
Contents
require File.expand_path(File.join(File.dirname(__FILE__), "helper")) class TestSubclass < Test::Unit::TestCase def setup @agent = WWW::Mechanize.new end def test_send_cookie page = @agent.get( :url => "http://localhost/send_cookies", :headers => {'Cookie' => 'name=Aaron'} ) assert_equal(1, page.links.length) assert_not_nil(page.links.find { |l| l.text == "name:Aaron" }) end end
Version data entries
15 entries across 15 versions & 5 rubygems