Stubbing calls to S3 from Paperclip

Any idea on how to stub calls to Amazon S3 from the Paperclip plugin?

Ok, I found something that works.

@photo.stub!(:save_attached_files).and_return(true)