Commit 62f5ec64a803b5e80c1f21beb8c4fe10c656d287

Authored by Richard Lee
Committed by Andrew Kane
1 parent 80459c4e

Update README for factory_bot (#1138)

Showing 1 changed file with 3 additions and 3 deletions   Show diff stats
@@ -1790,12 +1790,12 @@ describe Product, search: true do @@ -1790,12 +1790,12 @@ describe Product, search: true do
1790 end 1790 end
1791 ``` 1791 ```
1792 1792
1793 -### Factory Girl 1793 +### Factory Bot
1794 1794
1795 Use a trait and an after `create` hook for each indexed model: 1795 Use a trait and an after `create` hook for each indexed model:
1796 1796
1797 ```ruby 1797 ```ruby
1798 -FactoryGirl.define do 1798 +FactoryBot.define do
1799 factory :product do 1799 factory :product do
1800 # ... 1800 # ...
1801 1801
@@ -1810,7 +1810,7 @@ FactoryGirl.define do @@ -1810,7 +1810,7 @@ FactoryGirl.define do
1810 end 1810 end
1811 1811
1812 # use it 1812 # use it
1813 -FactoryGirl.create(:product, :some_trait, :reindex, some_attribute: "foo") 1813 +FactoryBot.create(:product, :some_trait, :reindex, some_attribute: "foo")
1814 ``` 1814 ```
1815 1815
1816 ### Parallel Tests 1816 ### Parallel Tests