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
delete<http://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
On 12/4/06, Bala Paranj
<rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>
wrote:>
>
> 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.
>
> --
> Posted via http://www.ruby-forum.com/.
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---