Skip to content

Instantly share code, notes, and snippets.

@henrik
Created January 9, 2013 15:42
Show Gist options
  • Save henrik/4494122 to your computer and use it in GitHub Desktop.
Save henrik/4494122 to your computer and use it in GitHub Desktop.
" The Vim search-and-replace we use in migrating from Fabrication to FactoryGirl.
" Change "name_of_factory" to the name.
:%s/\vFabricate(.build)?(\(:(name_of_factory)[,)])/FactoryGirl\1\2/e | %s/FactoryGirl(/FactoryGirl.create(/e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment