Sha256: 30e4ebbe5a5f65bf423eacb62a646826d824f7b8555ec5c137000f92e2b3a846
Contents?: true
Size: 494 Bytes
Versions: 2
Compression:
Stored size: 494 Bytes
Contents
$:.unshift File.join(File.dirname(__FILE__), "..", "lib") require 'test/unit' require 'rubygems' require 'mechanize' require 'test_includes' class BlankFormTest < Test::Unit::TestCase include TestMethods 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
mechanize-0.6.10 | test/tc_blank_form.rb |
mechanize-0.6.11 | test/tc_blank_form.rb |