Gem updates are tedious. Gem name changes are even more tedious. This quick script converts Factory Girl references to Factory Bot references.
1 2 3
The first line searches for all instances of
FactoryGirl and replaces them with
FactoryBot in all ruby or rake files. The second one covers
factory_bot in ruby, rake, or your Gemfile.
After that, the last step is for you to build your Gemfile.lock with a
bundle install and your migration should be complete.