What is the best way to spec a controller method that involves an rjs
redirect? Something like this
Â url_to = @parent ? auction_bids_path(@parent)Â : auctions_path
Â render :update do |page|
Â Â Â page.redirect_to(url_to)
Â response.should have_rjs
for the redirect but it didnt work. Any help would be appreciated.