Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
Added FactoryGirl configuration details
  • Loading branch information
asaganda committed Apr 30, 2016
1 parent ccd3436 commit 164ee5b
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 164ee5b

Please sign in to comment.