Created
February 15, 2012 16:52
-
-
Save blasterpal/1837247 to your computer and use it in GitHub Desktop.
Find replace Mocha stubs with Rspec2 in vim
This file contains 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
:args spec/*/* | |
:argdo %s/\(.*any_instance.*\)\(stubs\)\(.*\)\(returns\)\(.*\)/\1stub\3and_return\5/ge | update |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment