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