Sha256: f3d224477f78c5c3a16a359a4dafe383fb91be9f2f063eb7e1af65ec53a076f0

Contents?: true

Size: 459 Bytes

Versions: 2

Compression:

Stored size: 459 Bytes

Contents

require File.expand_path(File.join(File.dirname(__FILE__), "helper"))
class SelectNoneTest < Test::Unit::TestCase
  def setup
    @agent = 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

2 entries across 2 versions & 2 rubygems

Version Path
kitamomonga-mechanize-0.9.3.20090724215219 test/test_select_none.rb
tenderlove-mechanize-0.9.3.20090911221705 test/test_select_none.rb