Changeset [fa881a88c873f42ada86effa2419c111a5d2042b] by Álvaro Gil

April 3rd, 2010 @ 11:07 AM

build querystring with all form elements and then parse to get query params

  • Basically Field#to_param was replaced for Field#to_query_string and some methods related to build params were moved to Form class.

Before this commit the params hash was made by parsing each element
querystring to param and then merge, now we build the whole querystring
first and then parse it to get params with Rack or Rails depending of
the configure mode.
http://github.com/brynary/webrat/commit/fa881a88c873f42ada86effa241...

Committed by Álvaro Gil

  • A lib/webrat/core_extensions/nil_to_query_string.rb
  • A spec/private/core/form_spec.rb
  • R lib/webrat/core_extensions/nil_to_param.rb
  • M lib/webrat/core/elements/field.rb
  • M lib/webrat/core/elements/form.rb
  • M spec/private/core/field_spec.rb
New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

Ruby Acceptance Testing for Web applications.

Shared Ticket Bins