Skip to content

Instantly share code, notes, and snippets.

@JFernandezWM
Last active February 25, 2021 14:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save JFernandezWM/d2e0e31afe8f9681612f05c578d94e01 to your computer and use it in GitHub Desktop.
Save JFernandezWM/d2e0e31afe8f9681612f05c578d94e01 to your computer and use it in GitHub Desktop.
Update to factory bot shell scripts for Mac that actually work...
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