[rspec-users] Spec for image upload and resizing

srinu 36srinu at gmail.com
Tue Jun 16 00:49:21 EDT 2009


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 <sfe... at gmail.com> wrote:
> On Mon, Jun 15, 2009 at 1:25 AM, srinu<36sr... at 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
> override Paperclip's file path with a temporary directory (the
> 'tempdir' standard library can make one for you easily) in a
> before(:all) or before(:each), and then delete the temporary directory
> when you're done.
>
> --
> Have Fun,
>    Steve Eley (sfe... at gmail.com)
>    ESCAPE POD - The Science Fiction Podcast Magazine
>    http://www.escapepod.org
> _______________________________________________
> rspec-users mailing list
> rspec-us... at rubyforge.orghttp://rubyforge.org/mailman/listinfo/rspec-users


More information about the rspec-users mailing list