<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -4,6 +4,7 @@ Change Log
 Trunk
 -----
 
+* 2008/03/02 - Added have_form_putting_to(url_or_path) - Patch by unknown google code submitter
 * 2008/03/02 - Added should observe (Luke Melia)
 * 2008/03/02 - Patched validates_length_of to use within to be consistent with Rails (Matt Pelletier)
 * 2007/01/03 - Initial Public Release
\ No newline at end of file</diff>
      <filename>CHANGELOG</filename>
    </modified>
    <modified>
      <diff>@@ -63,6 +63,8 @@ Adds the following RSpec matchers:
     response.should have_form_posting_to(url_or_path)
     TM snippet: [hfpt + tab]
 
+    response.should have_form_putting_to(url_or_path)
+    
     response.should have_text_field_for(:attribute)
     TM snippet: [htff + tab]
 </diff>
      <filename>README</filename>
    </modified>
    <modified>
      <diff>@@ -7,6 +7,13 @@ module Spec
         end
       end
 
+      def have_form_puting_to(url_or_path, id)
+        return simple_matcher(&quot;have a form submitting via PUT to '#{url_or_path}/#{id}'&quot;) do |response|
+          have_tag(&quot;form[method=post][action=#{url_or_path}/#{id}]&quot;).matches?(response)
+          have_tag(&quot;input[name=_method][type=hidden][value=put]&quot;).matches?(response)
+        end
+      end
+      
       def have_label_for(attribute, text)
         return simple_matcher(&quot;have a label for '#{attribute}' with value of '#{text}'&quot;) do |response|
           have_tag(&quot;label[for=#{attribute}]&quot;).matches?(response)</diff>
      <filename>lib/spec/rails/matchers/views.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>33f44e4d7242d05fa9f1a25556e0f4d11b713feb</id>
    </parent>
  </parents>
  <author>
    <name>joshknowles</name>
    <email>joshknowles@11e6f158-dd3c-0410-a69b-4d739fb74d9d</email>
  </author>
  <url>http://github.com/brandon/rspec-on-rails-matchers/commit/89e73dc828d96b960b03fa3801a058c8bf3400e9</url>
  <id>89e73dc828d96b960b03fa3801a058c8bf3400e9</id>
  <committed-date>2008-03-02T21:22:23-08:00</committed-date>
  <authored-date>2008-03-02T21:22:23-08:00</authored-date>
  <message>Added have_form_putting_to.


git-svn-id: https://rspec-on-rails-matchers.googlecode.com/svn/trunk@24 11e6f158-dd3c-0410-a69b-4d739fb74d9d</message>
  <tree>02870ab7cae47bd8496ed4680e409ef39b46724a</tree>
  <committer>
    <name>joshknowles</name>
    <email>joshknowles@11e6f158-dd3c-0410-a69b-4d739fb74d9d</email>
  </committer>
</commit>
