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
df44c59050
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-28 20:16:10 -04: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-13 19:13:44 -05:00
config
.
include
FactoryBot
::
Syntax
::
Methods
Add spec/support/factory_girl Just for consistency with our Capybara, DatabaseCleaner, WebMock, etc. setups.
2015-06-28 20:16:10 -04:00
end
Copy permalink