Sha256: 4dcb916aa2772941467f6381558bf1273fbdb8d45d35f60b36c5bd79f7d13814

Contents?: true

Size: 527 Bytes

Versions: 8

Compression:

Stored size: 527 Bytes

Contents

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

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

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

  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

8 entries across 8 versions & 1 rubygems

Version Path
mechanize-0.6.10 test/tc_form_no_inputname.rb
mechanize-0.6.11 test/tc_form_no_inputname.rb
mechanize-0.6.5 test/tc_form_no_inputname.rb
mechanize-0.6.6 test/tc_form_no_inputname.rb
mechanize-0.6.7 test/tc_form_no_inputname.rb
mechanize-0.6.8 test/tc_form_no_inputname.rb
mechanize-0.6.4 test/tc_form_no_inputname.rb
mechanize-0.6.9 test/tc_form_no_inputname.rb