Sha256: 86039f61748fff7bdbeb01e89e3781c6735da2ef89501961cec101a509c0d7a8
Contents?: true
Size: 464 Bytes
Versions: 10
Compression:
Stored size: 464 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_with(:text => 'list:1').length) end end
Version data entries
10 entries across 10 versions & 5 rubygems