Sha256: d23ec4be5046f1da45a6794d45d16d08f81512d1575fdf56651eedb0eeeb9e6a

Contents?: true

Size: 453 Bytes

Versions: 5

Compression:

Stored size: 453 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.text('list:6').length)
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
mechanize-0.8.0 test/test_select_all.rb
mechanize-0.8.1 test/test_select_all.rb
mechanize-0.8.2 test/test_select_all.rb
mechanize-0.8.3 test/test_select_all.rb
mechanize-0.8.4 test/test_select_all.rb