[rspec-users] redirection doesn't get detected well?
dchelimsky at gmail.com
Wed Apr 11 15:29:30 EDT 2007
On 4/11/07, Matthijs Langenberg <mlangenberg at gmail.com> wrote:
> I'm doing a redirect in one of my controller actions and somehow I can't
> spec it, see this pastie: http://pastie.caboo.se/53120.
> When following the link from a browser I'm being redirected to the right
First of all - nice example!
Secondly, this looks like it should work. What's actually in the response?
it "should destroy order_product with order_id==3 and product_id==6
and redirect to /orders/3." do
delete 'destroy', :id => 'nil', :order_id => 3, :product_id => 6
> rspec-users mailing list
> rspec-users at rubyforge.org
More information about the rspec-users