Sha256: fbdde33c8d0840ac21a5a6bbf8f7dd3f26d1a1eb623b9887de75c1e8e1f36d3f
Contents?: true
Size: 455 Bytes
Versions: 5
Compression:
Stored size: 455 Bytes
Contents
require File.expand_path(File.join(File.dirname(__FILE__), "helper")) class SelectNoneTest < Test::Unit::TestCase def setup @agent = WWW::Mechanize.new @page = @agent.get("http://localhost/form_select_none.html") @form = @page.forms.first end def test_select_default assert_equal("1", @form.list) page = @agent.submit(@form) assert_equal(1, page.links.length) assert_equal(1, page.links.text('list:1').length) end end
Version data entries
5 entries across 5 versions & 1 rubygems