Re: [rspec-users] send_file testing

2009-02-24 Thread vo.x
On 24 Ún, 17:26, Nick Hoffman wrote: > On 24/02/2009, at 8:03 AM, vo.x wrote: > > > > > On 23 Ún, 18:41, Nick Hoffman wrote: > >> On 22/02/2009, at 3:34 PM, vo.x wrote: > > >>> Hello all, > > >>> Is there some best practice how to test Rails controller action   > >>> which > >>> is using send_fil

Re: [rspec-users] send_file testing

2009-02-24 Thread Nick Hoffman
On 24/02/2009, at 8:03 AM, vo.x wrote: On 23 Ún, 18:41, Nick Hoffman wrote: On 22/02/2009, at 3:34 PM, vo.x wrote: Hello all, Is there some best practice how to test Rails controller action which is using send_file method? Could you help me please? Vit On 23/02/2009, at 2:43 AM, vo.

Re: [rspec-users] send_file testing

2009-02-24 Thread vo.x
On 23 Ún, 18:41, Nick Hoffman wrote: > On 22/02/2009, at 3:34 PM, vo.x wrote: > > > Hello all, > > > Is there some best practice how to test Rails controller action which > > is using send_file method? Could you help me please? > > > Vit > > On 23/02/2009, at 2:43 AM, vo.x wrote: > > > Just to b

Re: [rspec-users] send_file testing

2009-02-23 Thread Nick Hoffman
On 22/02/2009, at 3:34 PM, vo.x wrote: Hello all, Is there some best practice how to test Rails controller action which is using send_file method? Could you help me please? Vit On 23/02/2009, at 2:43 AM, vo.x wrote: Just to be clear, this is how the action looks: def download log = Act

Re: [rspec-users] send_file testing

2009-02-22 Thread vo.x
Just to be clear, this is how the action looks: def download log = ActivityLog.find(params[:id]) if log send_file log.path else flash[:notice] = _("Log file \"#{params[:id]}\" was not found.") redirect_to :action => 'index' end end Vit ___

[rspec-users] send_file testing

2009-02-22 Thread vo.x
Hello all, Is there some best practice how to test Rails controller action which is using send_file method? Could you help me please? Vit ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users