Sha256: a9fbd5a52bf5bcd7ea992ed0bcbece0949c9ab3968469c20e87da94d60f78828
Contents?: true
Size: 372 Bytes
Versions: 9
Compression:
Stored size: 372 Bytes
Contents
require File.dirname(__FILE__) + "/helper" class BlankFormTest < Test::Unit::TestCase def setup @agent = WWW::Mechanize.new end def test_blank_form_query_string page = @agent.get('http://localhost/tc_blank_form.html') form = page.forms.first query = form.build_query assert(query.length > 0) assert query.all? { |x| x[1] == '' } end end
Version data entries
9 entries across 9 versions & 1 rubygems