Sha256: 6c83cefb7e085e4fe689019422f2135476bd2da51aa6276e9a03e7772986a141

Contents?: true

Size: 427 Bytes

Versions: 9

Compression:

Stored size: 427 Bytes

Contents

require 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

9 entries across 9 versions & 1 rubygems

Version Path
mechanize-0.7.2 test/tc_select_noopts.rb
mechanize-0.7.0 test/tc_select_noopts.rb
mechanize-0.7.1 test/tc_select_noopts.rb
mechanize-0.7.3 test/tc_select_noopts.rb
mechanize-0.7.4 test/tc_select_noopts.rb
mechanize-0.7.5 test/tc_select_noopts.rb
mechanize-0.7.6 test/tc_select_noopts.rb
mechanize-0.7.7 test/test_select_noopts.rb
mechanize-0.7.8 test/test_select_noopts.rb