Sha256: a4b44148a712992d2d0e1e198dc89c6f6009b0dd6556086fdca6c858f37e973c

Contents?: true

Size: 380 Bytes

Versions: 3

Compression:

Stored size: 380 Bytes

Contents

require "helper"

class SelectNoOptionsTest < MiniTest::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 @form.field('list')
    assert_nil @form.list

    page = @agent.submit(@form)

    assert_equal(0, page.links.length)
  end
end

Version data entries

3 entries across 3 versions & 3 rubygems

Version Path
aai10-mechanize-2.0.1.0 test/test_select_noopts.rb
neocoin-mechanize-2.0.2 test/test_select_noopts.rb
mechanize-2.0.1 test/test_select_noopts.rb