Re: [rspec-users] Spec for image upload and resizing

2009-06-15 Thread srinu
Well, thanks for the reply, as you suggested it is a better way to override the file path. Thanks Srinivas On Jun 15, 6:41 pm, Stephen Eley wrote: > On Mon, Jun 15, 2009 at 1:25 AM, srinu<36sr...@gmail.com> wrote: > > >  But every time I run the test images are saving. Is there any way to > > te

Re: [rspec-users] Spec for image upload and resizing

2009-06-15 Thread Stephen Eley
On Mon, Jun 15, 2009 at 1:25 AM, srinu<36sr...@gmail.com> wrote: > >  But every time I run the test images are saving. Is there any way to > test my asset model? Well, it does have to save the processed image *somewhere* or you're not going to have anything to measure. My suggestion would be to o

[rspec-users] Spec for image upload and resizing

2009-06-14 Thread srinu
Hi, I have a written spec for image upload model using paperclip plug- in. The sample code looks like http://gist.github.com/129954 Testing the upload image just not validation and saving to database, its about the input image has got cropped or not if the input image size exceeds the 600x60