Sha256: 8dd4b9017acc9e17b8e9e6d1e1316365407dc16b792a33285cdc2603f0ea5568

Contents?: true

Size: 454 Bytes

Versions: 5

Compression:

Stored size: 454 Bytes

Contents

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

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

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

Version data entries

5 entries across 5 versions & 1 rubygems

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