Hi everyone, What is the best way to spec a controller method that involves an rjs redirect? Something like this def index Â url_to = @parent ? auction_bids_path(@parent)Â : auctions_path Â render :update do |page| Â Â Â page.redirect_to(url_to) Â end end I tried Â response.should have_rjs for the redirect but it didnt work. Any help would be appreciated. Thanks
on 2009-01-02 17:03
on 2009-01-03 21:33
On Fri, Jan 2, 2009 at 10:01 AM, Nasir Jamal <firstname.lastname@example.org> wrote: > end > > I tried > response.should have_rjs > for the redirect but it didnt work. Any help would be appreciated. Please be more specific when you say "it didn't work." What precisely was the code in the spec and what precisely was the error you got.
on 2009-01-04 05:18