Sha256: fe4eac6b32e15675de4ad967c6910a103be536dddd0520f649dd9eeafefed48e
Contents?: true
Size: 567 Bytes
Versions: 7
Compression:
Stored size: 567 Bytes
Contents
require File.dirname(__FILE__) + "/helper" class TestEncodedLinks < Test::Unit::TestCase def setup @agent = WWW::Mechanize.new @page = @agent.get("http://localhost/tc_encoded_links.html") end def test_click_link link = @page.links.first assert_equal('/form_post?a=b&b=c', link.href) page = @agent.click(link) assert_equal("http://localhost/form_post?a=b&b=c", page.uri.to_s) end def test_hpricot_link page = @agent.click(@page.search('a').first) assert_equal("http://localhost/form_post?a=b&b=c", page.uri.to_s) end end
Version data entries
7 entries across 7 versions & 1 rubygems