Created
December 22, 2017 16:31
-
-
Save marcocarvalho/3fe65f7561003c826cfbec72d11cbd45 to your computer and use it in GitHub Desktop.
Upgrade rspec 2.x to 3.x
This file contains 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
# http://rspec.info/upgrading-from-rspec-2/ | |
^(\s*)(.*?)\.stub\((.*?)\) -> \1allow(\2).to receive(\3) | |
^(\s*)(.*?)\.should\s*be_true -> \1expect(\2).to be_truthy | |
^(\s*)(.*?)\.should == -> \1expect(\2).to eq | |
^(\s*)(.*?)\.should_receive[\s\(]*(:\S*)\)* -> \1expect(\2).to receive(\3) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment