Sha256: d370c6881f01f8c97ec6566c1ea855e5c1543e55739f013287726bbf3509e8a8

Contents?: true

Size: 437 Bytes

Versions: 2

Compression:

Stored size: 437 Bytes

Contents

require File.expand_path(File.join(File.dirname(__FILE__), "helper"))

class SelectNoOptionsTest < Test::Unit::TestCase
  def setup
    @agent = Mechanize.new
    @page = @agent.get("http://localhost/form_select_noopts.html")
    @form = @page.forms.first
  end

  def test_select_default
    assert_not_nil(@form.field('list'))
    assert_nil(@form.list)
    page = @agent.submit(@form)
    assert_equal(0, page.links.length)
  end
end

Version data entries

2 entries across 2 versions & 2 rubygems

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