Sha256: fbe193b036b1d8446a84ca3bb6ef0396d19ec5fa19002f99753b37d7192657e1

Contents?: true

Size: 557 Bytes

Versions: 15

Compression:

Stored size: 557 Bytes

Contents

$:.unshift File.join(File.dirname(__FILE__), "..", "lib")

require 'test/unit'
require 'rubygems'
require 'mechanize'
require 'test_includes'

class SelectNoOptionsTest < Test::Unit::TestCase
  include TestMethods

  def setup
    @agent = WWW::Mechanize.new
    @page = @agent.get("http://localhost:#{PORT}/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

15 entries across 15 versions & 1 rubygems

Version Path
mechanize-0.6.10 test/tc_select_noopts.rb
mechanize-0.6.0 test/tc_select_noopts.rb
mechanize-0.5.2 test/tc_select_noopts.rb
mechanize-0.5.3 test/tc_select_noopts.rb
mechanize-0.5.4 test/tc_select_noopts.rb
mechanize-0.6.1 test/tc_select_noopts.rb
mechanize-0.6.5 test/tc_select_noopts.rb
mechanize-0.6.7 test/tc_select_noopts.rb
mechanize-0.6.6 test/tc_select_noopts.rb
mechanize-0.6.9 test/tc_select_noopts.rb
mechanize-0.6.2 test/tc_select_noopts.rb
mechanize-0.6.8 test/tc_select_noopts.rb
mechanize-0.6.11 test/tc_select_noopts.rb
mechanize-0.6.3 test/tc_select_noopts.rb
mechanize-0.6.4 test/tc_select_noopts.rb