search for: save_attached_files

Displaying 2 results from an estimated 2 matches for "save_attached_files".

2008 Jun 09
10
Testing file attachment with Paperclip
Does someone have an example on faking a file upload for just ensuring it gets called, without actually uploading the file to s3. I thought that stubbing Model.has_attached_file would be enough, but it doesn''t seem so ... This is what I did: Video.stub!( :has_attached_file ).with( :name ).and_return( true ) has_attached_file is from paperclip, it gets mixed to the model. 1)
2009 Dec 11
1
Stubbing calls to S3 from Paperclip
Any idea on how to stub calls to Amazon S3 from the Paperclip plugin? -- Andrei Erdoss -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/rspec-users/attachments/20091211/640e28ad/attachment-0001.html>