Skip to content

Instantly share code, notes, and snippets.

@jakcharlton
Created April 25, 2012 09:54
Show Gist options
  • Save jakcharlton/2488614 to your computer and use it in GitHub Desktop.
Save jakcharlton/2488614 to your computer and use it in GitHub Desktop.
Mock S3 for Paperclip
@your_model.should_receive(:save_attached_files).and_return(true)
@samstickland
Copy link

In the latest version of Paperclip I had to do the following:

expect_any_instance_of(Paperclip::Attachment).to receive(:save).and_return(true)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment