Created
July 30, 2014 18:37
-
-
Save emorikawa/a091dfded1643ef86299 to your computer and use it in GitHub Desktop.
Convert RSpec `should` syntax to newer `expect` syntax
This file contains hidden or 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
command! ShouldToExpect %s/\(^\s\+\)\(.\+\)\.should \(.\+\)/\1expect(\2).to \3/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Run the regex by itself or enter the line above into your .vimrc