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

Version Path
mechanize-0.7.2 test/tc_blank_form.rb
mechanize-0.7.6 test/tc_blank_form.rb
mechanize-0.7.1 test/tc_blank_form.rb
mechanize-0.7.7 test/test_blank_form.rb
mechanize-0.7.0 test/tc_blank_form.rb
mechanize-0.7.3 test/tc_blank_form.rb
mechanize-0.7.4 test/tc_blank_form.rb
mechanize-0.7.5 test/tc_blank_form.rb
mechanize-0.7.8 test/test_blank_form.rb