Re: [rspec-users] specing send_file

2009-02-28 Thread vo.x
Uhh, sorry ... I will give it a try! Thank you for your help. Vit On 26 Ún, 15:29, David Chelimsky wrote: > On Thu, Feb 26, 2009 at 7:13 AM, vo.x wrote: > > On 25 Ún, 16:18, David Chelimsky wrote: > >> On Wed, Feb 25, 2009 at 8:20 AM, vo.x wrote: > >> > Aha, it seems that there is differen

Re: [rspec-users] specing send_file

2009-02-26 Thread David Chelimsky
On Thu, Feb 26, 2009 at 7:13 AM, vo.x wrote: > On 25 Ún, 16:18, David Chelimsky wrote: >> On Wed, Feb 25, 2009 at 8:20 AM, vo.x wrote: >> > Aha, it seems that there is difference between behavior of Rails 2.1 >> > and 2.3. In Rails 2.1 stubbing works like a charm but it fails with >> > Rails 2.3

Re: [rspec-users] specing send_file

2009-02-26 Thread vo.x
On 25 Ún, 16:18, David Chelimsky wrote: > On Wed, Feb 25, 2009 at 8:20 AM, vo.x wrote: > > Aha, it seems that there is difference between behavior of Rails 2.1 > > and 2.3. In Rails 2.1 stubbing works like a charm but it fails with > > Rails 2.3 :/ > > That's a very general statement. Can you be

Re: [rspec-users] specing send_file

2009-02-25 Thread David Chelimsky
On Wed, Feb 25, 2009 at 8:20 AM, vo.x wrote: > Aha, it seems that there is difference between behavior of Rails 2.1 > and 2.3. In Rails 2.1 stubbing works like a charm but it fails with > Rails 2.3 :/ That's a very general statement. Can you be more specific? What version of rspec are you using?

Re: [rspec-users] specing send_file

2009-02-25 Thread vo.x
On 23 Ún, 17:30, Stephen Eley wrote: > On Fri, Feb 20, 2009 at 5:45 PM, vo.x wrote: > > Hello everybody! > > > Im wondering what is the best way of specing action with send file > > such as: > > I'd probably do it on two fronts.  On the unit test level, you can > stub it in your setup so that i

Re: [rspec-users] specing send_file

2009-02-23 Thread Stephen Eley
On Fri, Feb 20, 2009 at 5:45 PM, vo.x wrote: > Hello everybody! > > Im wondering what is the best way of specing action with send file > such as: I'd probably do it on two fronts. On the unit test level, you can stub it in your setup so that it won't try to send that file every time you run test