On Nov 26, 3:20 pm, Mauro Botelho <[EMAIL PROTECTED]> wrote:
> 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.
>
In the past i've used the arts plugin (http://glu.ttono.us/articles/
2006/05/29/guide-test-driven-rjs-with-arts) in the past.
Fred
> 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
-~----------~----~----~----~------~----~------~--~---