[rspec-users] RSpec in Rails -- HTTP methods

Mark Dodwell lists at ruby-forum.com
Wed Sep 10 13:24:27 EDT 2008

It seems that RSpec-Rails isn't restricted to the HTTP methods

For example doing:


in the browser doesn't work, because the destroy action is only
recognised with the HTTP 'delete' verb.

But in Rspec specs if you do:

  get :destroy

It works.

Is this intended behaviour or a bug?

Many Thanks,

~ Mark
Posted via http://www.ruby-forum.com/.

More information about the rspec-users mailing list