render :update do |page|
@story.destroy
flash[:status] = "Story \"#{@story.title}\" 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
The arts plug in has been incorporated into rails and I couldn’t find
it anywhere anymore. And as far as I know it didn’t have this
functionality either.
Not quite, and yes it did. The assert_select_rjs isn’t quite the same
as ARTS was. better in someways, different in others.
It could/can do assert_rjs :redirect_to, :action => ‘foo’
At the end of the day all that’s doing though is asserting that the
output contains window.location="…"
The arts plug in has been incorporated into rails and I couldn’t find
it anywhere anymore. And as far as I know it didn’t have this
functionality either.