On Fri, Jan 2, 2009 at 10:01 AM, Nasir Jamal <nas35...@yahoo.com> wrote:
> 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.

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.
_______________________________________________
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users

Reply via email to