10
Oct
Mocking paperclip with rspec
When using the S3 method of storage for paperclip, the last thing you want is to incur extra charges just for running your tests.
If you want to simply mock the storage aspect completely, and I'm not saying you do, but *if* you do, just do this:
@your_model.should_receive(:save_attached_files).and_return(true)
