Commit a2e2e99a by Dan Phillips

Merge branch 'master' of https://github.com/thoughtbot/paperclip

parents 6b790900 087d8a76
......@@ -929,6 +929,17 @@ config.after(:suite) do
FileUtils.rm_rf(Dir["#{Rails.root}/spec/test_files/"])
end
```
**Example of test configuration with Factory Girl**
```ruby
FactoryGirl.define do
factory :user do
avatar { File.new("#{Rails.root}/spec/support/fixtures/image.jpg") }
end
end
```
---
Contributing
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment