This website requires JavaScript.
Explore
Help
Sign In
kotovalexarian-likes-gitlab
/
gitlab-org--gitlab-foss
Watch
1
Star
0
Fork
You've already forked gitlab-org--gitlab-foss
0
Code
Releases
Activity
a85b85e1d8
gitlab-org--gitlab-foss
/
spec
/
support
/
factory_girl.rb
4 lines
77 B
Ruby
Raw
Normal View
History
Unescape
Escape
Add spec/support/factory_girl Just for consistency with our Capybara, DatabaseCleaner, WebMock, etc. setups.
2015-06-29 00:16:10 +00:00
RSpec
.
configure
do
|
config
|
Replace factory_girl_rails with factory_bot_rails I've followed the [upgrade guide](https://github.com/thoughtbot/factory_bot/blob/4-9-0-stable/UPGRADE_FROM_FACTORY_GIRL.md) and ran these two commands: ``` grep -e FactoryGirl **/*.rake **/*.rb -s -l | xargs sed -i "" "s|FactoryGirl|FactoryBot|" grep -e factory_girl **/*.rake **/*.rb -s -l | xargs sed -i "" "s|factory_girl|factory_bot|" ``` Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-12-14 00:13:44 +00:00
config
.
include
FactoryBot
::
Syntax
::
Methods
Add spec/support/factory_girl Just for consistency with our Capybara, DatabaseCleaner, WebMock, etc. setups.
2015-06-29 00:16:10 +00:00
end