Sha256: 152e3d4cd9f2618061c1e25265bfbc3b45ce8c753af11c6260996a5e37d9ff70

Contents?: true

Size: 432 Bytes

Versions: 15

Compression:

Stored size: 432 Bytes

Contents

require File.expand_path(File.join(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

15 entries across 15 versions & 5 rubygems

Version Path
eric-mechanize-0.9.3.20090623142847 test/test_form_no_inputname.rb
knu-mechanize-0.9.3.20090623142847 test/test_form_no_inputname.rb
tenderlove-mechanize-0.9.3.20090617085936 test/test_form_no_inputname.rb
tenderlove-mechanize-0.9.3.20090623142847 test/test_form_no_inputname.rb
mechanize-ntlm-0.9.1 test/test_form_no_inputname.rb
mechanize-0.8.0 test/test_form_no_inputname.rb
mechanize-0.8.1 test/test_form_no_inputname.rb
mechanize-0.8.3 test/test_form_no_inputname.rb
mechanize-0.8.4 test/test_form_no_inputname.rb
mechanize-0.8.2 test/test_form_no_inputname.rb
mechanize-0.9.0 test/test_form_no_inputname.rb
mechanize-0.9.1 test/test_form_no_inputname.rb
mechanize-0.9.2 test/test_form_no_inputname.rb
mechanize-0.8.5 test/test_form_no_inputname.rb
mechanize-0.9.3 test/test_form_no_inputname.rb