<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -20,6 +20,7 @@ module Webrat
     %w(get head post put delete).each do |verb|
       define_method(verb) do |*args| # (path, data, headers = nil)
         path, data, headers = *args
+        data = data.inject({}) {|data, (key,value)| data[key] = Rack::Utils.unescape(value); data }
         params = data.merge(:env =&gt; headers || {})
         self.__send__(&quot;#{verb}_it&quot;, path, params)
       end</diff>
      <filename>lib/webrat/sinatra.rb</filename>
    </modified>
    <modified>
      <diff>@@ -17,6 +17,7 @@ end
  
 post &quot;/go&quot; do
   @user = params[:name]
+  @email = params[:email]
   erb :hello
 end
  
@@ -36,10 +37,17 @@ __END__
  
 @@ go
 &lt;form method=&quot;post&quot; action=&quot;/go&quot;&gt;
-  &lt;label for=&quot;name&quot;&gt;Name&lt;/label&gt;
-  &lt;input type=&quot;text&quot; name=&quot;name&quot; id=&quot;name&quot;&gt;
+  &lt;div&gt;
+    &lt;label for=&quot;name&quot;&gt;Name&lt;/label&gt;
+    &lt;input type=&quot;text&quot; name=&quot;name&quot; id=&quot;name&quot;&gt;
+  &lt;/div&gt;
+  &lt;div&gt;
+    &lt;label for=&quot;email&quot;&gt;Email&lt;/label&gt;
+    &lt;input type=&quot;text&quot; name=&quot;email&quot; id=&quot;email&quot;&gt;
+  &lt;/div&gt;
   &lt;input type=&quot;submit&quot; value=&quot;Submit&quot; /&gt;
 &lt;/form&gt;
  
 @@ hello
-&lt;p&gt;Hello, &lt;%= @user %&gt;&lt;/p&gt;
\ No newline at end of file
+&lt;p&gt;Hello, &lt;%= @user %&gt;&lt;/p&gt;
+&lt;p&gt;Your email is: &lt;%= @email %&gt;&lt;/p&gt;
\ No newline at end of file</diff>
      <filename>spec/integration/sinatra/app.rb</filename>
    </modified>
    <modified>
      <diff>@@ -12,9 +12,11 @@ class WebratTest &lt; Test::Unit::TestCase
   def test_submits_form
     visit &quot;/go&quot;
     fill_in &quot;Name&quot;, :with =&gt; &quot;World&quot;
+    fill_in &quot;Email&quot;, :with =&gt; &quot;world@example.org&quot;
     click_button &quot;Submit&quot;
     
     assert response_body.include?(&quot;Hello, World&quot;)
+    assert response_body.include?(&quot;Your email is: world@example.org&quot;)
   end
   
   def test_follows_redirects</diff>
      <filename>spec/integration/sinatra/test/webrat_test.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>34ea3e64b896424b5aa1195610d5e61e5be466cf</id>
    </parent>
  </parents>
  <author>
    <name>Nicolas Sanguinetti</name>
    <email>contacto@nicolassanguinetti.info</email>
  </author>
  <url>http://github.com/brynary/webrat/commit/4565a3cea641b79a77661b4bda6d3b21f7644886</url>
  <id>4565a3cea641b79a77661b4bda6d3b21f7644886</id>
  <committed-date>2009-01-04T19:36:21-08:00</committed-date>
  <authored-date>2009-01-01T06:42:05-08:00</authored-date>
  <message>Unescape the values passed to the sinatra test helpers</message>
  <tree>72179368207c4ffba6b6f28cb7d8efc4b25eeb50</tree>
  <committer>
    <name>Josh Knowles</name>
    <email>joshknowles@gmail.com</email>
  </committer>
</commit>
