Sha256: 3cf9b218c31b37a01e90e0c7214b29e0905d3d32923baef8fe630ef3021229f0

Contents?: true

Size: 405 Bytes

Versions: 9

Compression:

Stored size: 405 Bytes

Contents

require File.dirname(__FILE__) + "/helper"

class FormNoInputNameTest < Test::Unit::TestCase
  def setup
    @agent = WWW::Mechanize.new
    @page = @agent.get('http://localhost/form_no_input_name.html')
  end

  def test_no_input_name
    form = @page.forms.first
    assert_equal(0, form.fields.length)
    assert_equal(0, form.radiobuttons.length)
    assert_equal(0, form.checkboxes.length)
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

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