How to test DELETE :destroy with Shoulda

Hi,

I tried to find some help in Shoulda list without a positive result. I
am able to test DELETE :destroy with Test::Unit but I cannot with
Shoulda because instead of a 302 (redirect) I get 200.

Do you have a basic and simple example on how to test the delete part
of the CRUD?

Thanks.

The problem is that when running the app with Mongrel I get a correct
302 but when testing the answer is

You are being redirected.

I am using Rails 2.3.8

I do not think that is correct, it seems a bug. Any reply at all?

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs