Commit 164ee5bb by Andrew Saganda Committed by Andrew

Update README.md

Added FactoryGirl configuration details
parent ccd3436c
...@@ -929,6 +929,17 @@ config.after(:suite) do ...@@ -929,6 +929,17 @@ config.after(:suite) do
FileUtils.rm_rf(Dir["#{Rails.root}/spec/test_files/"]) FileUtils.rm_rf(Dir["#{Rails.root}/spec/test_files/"])
end 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 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