Skip to content

[EE] Replace factory_girl_rails with factory_bot_rails

Rémy Coutable requested to merge ee-rc/use-factory_bot_rails into master

EE MR for https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/15919.

What does this MR do?

Replaces factory_girl_rails with factory_bot_rails.

Are there points in the code the reviewer needs to double check?

I've followed the upgrade guide 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|"

Why was this MR needed?

Because the gem was updated.

Merge request reports