Commit b88dcce4 by Fabricio Bezerra dos Santos Committed by GitHub

Rename FactoryGirl to FactoryBot

FactoryGirl is a factory bot now
parent c794f6df
......@@ -955,7 +955,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:
......@@ -972,11 +972,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