Sha256: d378b1d395bea12f8652361dbea3a07f6ebc96ed1f180cf8e04652dd7133cc0e
Contents?: true
Size: 559 Bytes
Versions: 15
Compression:
Stored size: 559 Bytes
Contents
$:.unshift File.join(File.dirname(__FILE__), "..", "lib") require 'test/unit' require 'rubygems' require 'mechanize' require 'test_includes' class SelectNoneTest < Test::Unit::TestCase include TestMethods def setup @agent = WWW::Mechanize.new @page = @agent.get("http://localhost:#{PORT}/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
15 entries across 15 versions & 1 rubygems