Skip to content

Instantly share code, notes, and snippets.

@laurenfazah
Last active June 23, 2020 17:32
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save laurenfazah/0bcb4fb21c277c020a371c3bd9f3b554 to your computer and use it in GitHub Desktop.
Save laurenfazah/0bcb4fb21c277c020a371c3bd9f3b554 to your computer and use it in GitHub Desktop.
Handy vim commands for migrating from Minitest to RSpec
%s/test_helper/rails_helper/g
%s/<...>\./expect(<...>\./g
%s/\.must_/)\.to /g
%s/\.wont_/.not_to /g
%s/equal/eq/g
%s/ eq true/ be true/g
%s/ eq false/ be false/g
%s/to raise/to raise_error/g
%s/to be_instance_of/to be_an_instance_of/g
Gmove spec/...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment