Hi. I am (integration) testing a standard edit action. I realise that the http request is not actually a PUT request, but rather a POST request with a hidden field in the form named "_method", which has the value "put".
This means that a browser will generate a POST request, so an integration test using put or put_via_redirect will actually not simulate a real browsers behaviour. What does people do here? ignore the fact that the integration test generate HTTP request which differs from what a broswer will do, or do you use post (or post_via_redirect) and adding the "_method" parameter manually. Jarl --~--~---------~--~----~------------~-------~--~----~ 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@googlegroups.com To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---