Commit ac82f132 by Sid Raval Committed by GitHub

Merge pull request #2501 from eldemonstro/master

Rename FactoryGirl to FactoryBot
parents fbdcbe8d b88dcce4
......@@ -983,7 +983,7 @@ similar mechanism for whichever parallel testing library you use.
**Integration Tests**
Using integration tests with FactoryGirl may save multiple copies of
Using integration tests with FactoryBot may save multiple copies of
your test files within the app. To avoid this, specify a custom path in
the `config/environments/test.rb` like so:
......@@ -1000,11 +1000,11 @@ config.after(:suite) do
end
```
**Example of test configuration with Factory Girl**
**Example of test configuration with Factory Bot**
```ruby
FactoryGirl.define do
FactoryBot.define do
factory :user do
avatar { File.new("#{Rails.root}/spec/support/fixtures/image.jpg") }
end
......
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