Sha256: 5510b91b6767281c3acfa841fc6b5cfcc03fd2149be6f194cde3ab430d38ffee

Contents?: true

Size: 426 Bytes

Versions: 9

Compression:

Stored size: 426 Bytes

Contents

require 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

9 entries across 9 versions & 1 rubygems

Version Path
mechanize-0.7.4 test/tc_select_all.rb
mechanize-0.7.2 test/tc_select_all.rb
mechanize-0.7.3 test/tc_select_all.rb
mechanize-0.7.0 test/tc_select_all.rb
mechanize-0.7.1 test/tc_select_all.rb
mechanize-0.7.5 test/tc_select_all.rb
mechanize-0.7.6 test/tc_select_all.rb
mechanize-0.7.7 test/test_select_all.rb
mechanize-0.7.8 test/test_select_all.rb