I'm trying to test the following code:

    render :update do |page|
      @story.destroy
      flash[:status] = "Story \"[EMAIL PROTECTED]" has been deleted."
      page.redirect_to request.referer
    end

I know that assert_redirected doesn't work.

I found this blog post from 2006 (http://www.caboo.se/articles/
2006/2/20/assert-yourself-man-redirecting-with-rjs) and I was
wondering if there's a better/different way of achieving the same

Thanks in advance,

Mauro

--~--~---------~--~----~------------~-------~--~----~
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 [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to