Re: [rspec-users] controller.expect_render has me beat!

2007-10-01 Thread sinclair bain
Hans that did it! Thanks for that one! Cheers! sinclair On 9/25/07, Hans de Graaff <[EMAIL PROTECTED]> wrote: > > On Fri, 2007-09-14 at 17:51 -0400, sinclair bain wrote: > > > > def update > > ... > > if @config.update_attributes ( params[:new_config] ) > > redirect_to :action => :

Re: [rspec-users] controller.expect_render has me beat!

2007-09-25 Thread Hans de Graaff
On Fri, 2007-09-14 at 17:51 -0400, sinclair bain wrote: > > def update > ... > if @config.update_attributes ( params[:new_config] ) > redirect_to :action => :index > else > render :action => :edit, :id => params[:id] # this line > here > end > ... > end > it

Re: [rspec-users] controller.expect_render has me beat!

2007-09-14 Thread Luis Lavena
On 9/15/07, s.ross <[EMAIL PROTECTED]> wrote: > Look at your test.log and you can see exactly what was rendered. That should > explain why the example is failing. This works best if you can silence the > logs for all examples other than the one you are testing. > Better if you run just that exampl

Re: [rspec-users] controller.expect_render has me beat!

2007-09-14 Thread s.ross
Look at your test.log and you can see exactly what was rendered. That should explain why the example is failing. This works best if you can silence the logs for all examples other than the one you are testing. On Sep 14, 2007, at 7:35 PM, sinclair bain wrote: Hi, A controller has a method

[rspec-users] controller.expect_render has me beat!

2007-09-14 Thread sinclair bain
Hi, A controller has a method with the following def update ... if @config.update_attributes ( params[:new_config] ) redirect_to :action => :index else * render :action => :edit, :id => params[:id] # this line here* end ... end The example has the following

[rspec-users] controller.expect_render has me beat!

2007-09-14 Thread sinclair bain
Hi, A controller has a method with the following def update ... if @config.update_attributes( params[:new_config] ) redirect_to :action => :index else * render :action => :edit, :id => params[:id] # this line here* end ... end The example has the following it