<?xml version="1.0" encoding="UTF-8"?>
<post>
  <body>&lt;h2&gt;When using the S3 method of storage for paperclip, the last thing you want is to incur extra charges just for running your tests.&lt;/h2&gt;

&lt;p&gt;If you want to simply mock the storage aspect completely, and I'm not saying you do, but *if* you do, just do this:&lt;/p&gt;

&lt;pre lang="ruby"&gt;
@your_model.should_receive(:save_attached_files).and_return(true)
&lt;/pre&gt;</body>
  <classification>Blog</classification>
  <created-at type="datetime">2009-10-10T06:22:34Z</created-at>
  <id type="integer">51</id>
  <permalink>mocking-paperclip-with-rspec</permalink>
  <title>Mocking paperclip with rspec</title>
  <updated-at type="datetime">2009-10-10T06:34:26Z</updated-at>
  <user-id type="integer">2</user-id>
</post>
