Last active
February 25, 2021 14:27
-
-
Save JFernandezWM/d2e0e31afe8f9681612f05c578d94e01 to your computer and use it in GitHub Desktop.
Update to factory bot shell scripts for Mac that actually work...
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
find . -type f -name '*.rb' -exec sed -i '' s/FactoryGirl/FactoryBot/ {} + | |
find . -type f -name '*.rb' -exec sed -i '' s/factory_girl/factory_bot/ {} + | |
This: | |
from https://github.com/thoughtbot/factory_bot_rails/issues/247 | |
grep -rl 'FactoryGirl' ./ | xargs sed -i '' 's/FactoryGirl/FactoryBot/g' | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment