Skip to content

Instantly share code, notes, and snippets.

@benatkin
Last active August 29, 2015 14:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save benatkin/60fbc1562e73ef695b66 to your computer and use it in GitHub Desktop.
Save benatkin/60fbc1562e73ef695b66 to your computer and use it in GitHub Desktop.
rspec: moving from expect to should with vim regexes
s/expect(\([^)]*\)).to /\1.should /
s/eq(\([^)]\+\))/== \1/
s/JSON.parse.*)$/\0.with_indifferent_access/
s/\['\([^']\+\)'\]/[:\1]/g
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment