Sha256: 989bf1245abef3bbc4ef0569796a13a3bed6b981acde1c3840ad38d0b24e07c1

Contents?: true

Size: 442 Bytes

Versions: 10

Compression:

Stored size: 442 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.field('list'))
    assert_nil(@form.list)
    page = @agent.submit(@form)
    assert_equal(0, page.links.length)
  end
end

Version data entries

10 entries across 10 versions & 5 rubygems

Version Path
eric-mechanize-0.9.3.20090623142847 test/test_select_noopts.rb
knu-mechanize-0.9.3.20090623142847 test/test_select_noopts.rb
tenderlove-mechanize-0.9.3.20090617085936 test/test_select_noopts.rb
tenderlove-mechanize-0.9.3.20090623142847 test/test_select_noopts.rb
mechanize-ntlm-0.9.1 test/test_select_noopts.rb
mechanize-0.9.0 test/test_select_noopts.rb
mechanize-0.9.1 test/test_select_noopts.rb
mechanize-0.9.2 test/test_select_noopts.rb
mechanize-0.8.5 test/test_select_noopts.rb
mechanize-0.9.3 test/test_select_noopts.rb