Commit 087d8a76 by Tute Costa

Merge pull request #2183 from asaganda/patch-1

Update README.md
parents ccd3436c 164ee5bb
......@@ -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