c3p4hg
Last Updated: February 25, 2016
·
498
· javierg

Replace Factory for FactoryGirl with sed+ack

I have used this so many times upgrading FactoryGirl:

ack Factory test/ -l --print0 | xargs -0 -n 1 sed -i -e 's/Factory/FactoryGirl/g'