Sha256: e6f054a80ceba5171d7de706588e86ec4aa47fc78ce68cf06646fc726ac558aa

Contents?: true

Size: 434 Bytes

Versions: 2

Compression:

Stored size: 434 Bytes

Contents

require File.expand_path(File.join(File.dirname(__FILE__), "helper"))

class TestSubclass < Test::Unit::TestCase
  def setup
    @agent = 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

2 entries across 2 versions & 2 rubygems

Version Path
kitamomonga-mechanize-0.9.3.20090724215219 test/test_subclass.rb
tenderlove-mechanize-0.9.3.20090911221705 test/test_subclass.rb