Last active
June 23, 2020 17:32
-
-
Save laurenfazah/0bcb4fb21c277c020a371c3bd9f3b554 to your computer and use it in GitHub Desktop.
Handy vim commands for migrating from Minitest to RSpec
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
%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