Created
February 11, 2015 18:01
-
-
Save biscuitvile/c07cae84c2dc584d31bb to your computer and use it in GitHub Desktop.
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
" RSpec Expect To | |
imap <leader>et expect().to<ESC>F(a | |
" RSpec Expect To Equal | |
imap <leader>ete expect().to eql<ESC>F(a | |
" RSpec Expect To Include | |
imap <leader>eti expect().to include<ESC>F(a | |
" RSpec Expect To Be | |
imap <leader>etb expect().to be_<ESC>F(a | |
" Convert minitest stub to RSpec allow | |
nmap <leader>sta V:s/stub/allow/g<CR>0f)llito receive(:<ESC>/ <CR>i)<ESC> | |
" Convert minitest mock to RSpec expect | |
nmap <leader>mte V:s/mock/expect/g<CR>0f)llito receive(:<ESC>/ <CR>i)<ESC> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment