Sha256: 0b9a1dc5c43dc2fcec07423516e76edbc960fdaaa2552f84f2d2c7528cb77f43

Contents?: true

Size: 462 Bytes

Versions: 10

Compression:

Stored size: 462 Bytes

Contents

require File.expand_path(File.join(File.dirname(__FILE__), "helper"))
class SelectAllTest < Test::Unit::TestCase
  def setup
    @agent = WWW::Mechanize.new
    @page = @agent.get("http://localhost/form_select_all.html")
    @form = @page.forms.first
  end

  def test_select_default
    assert_equal("6", @form.list)
    page = @agent.submit(@form)
    assert_equal(1, page.links.length)
    assert_equal(1, page.links_with(:text => 'list:6').length)
  end
end

Version data entries

10 entries across 10 versions & 5 rubygems

Version Path
eric-mechanize-0.9.3.20090623142847 test/test_select_all.rb
knu-mechanize-0.9.3.20090623142847 test/test_select_all.rb
tenderlove-mechanize-0.9.3.20090617085936 test/test_select_all.rb
tenderlove-mechanize-0.9.3.20090623142847 test/test_select_all.rb
mechanize-ntlm-0.9.1 test/test_select_all.rb
mechanize-0.9.0 test/test_select_all.rb
mechanize-0.8.5 test/test_select_all.rb
mechanize-0.9.3 test/test_select_all.rb
mechanize-0.9.1 test/test_select_all.rb
mechanize-0.9.2 test/test_select_all.rb