AWDWR Integration Testing Question

There is a section called “Integration Testing Convenience Methods” in
the book. My question is how do I simulate a update request for a model
in integration tests for Rails 1.2?

I was browsing the code for Rails open source Beast forum. I came across
the following in the integration test:

post post_path(:forum_id => forums(:rails), :topic_id => topics(:pdi),
:id => first_post), :post => { :body => “I change my mind, I’m
scared.”}, :_method => “put”

Is this the correct way or is there put :update. TIA.

Ok, after some research I found out that the Rails 1.2 RC1 has a bug
that
makes the integration tests fail.

The following is the trouble ticket which was opened 2 months ago:

#6353: Undefined method recycle! in integration test with put or
deletehttp://dev.rubyonrails.org/ticket/6353 In
a simple integration test with trunk, I get: {{{ >> get ‘books/1’ => 200

put ‘books/1’ NoMethodError: undefined method `recycle!’ for
#ActionController::CgiRequest:0x2cef98c from
/Users/jasongarber/Documents/form_test_helper/confi … By jgarber —
10/05/06
11:14:10