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'
Written by Javier Guerra
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Ruby
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#