Skip to content

Instantly share code, notes, and snippets.

@coliver
Created March 7, 2016 17:32
Show Gist options
  • Save coliver/5feb2cef41ca3934385e to your computer and use it in GitHub Desktop.
Save coliver/5feb2cef41ca3934385e to your computer and use it in GitHub Desktop.
# I use RubyMine. In the find and replace box:
find: expect\((.*)\)\.to receive\((.*)\)(\.with\(.*\))?.and_return
replace: $1.expects($2).returns(
# This does most of the work.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment