Created
August 15, 2014 17:22
-
-
Save kianw/352f371b224a54655f39 to your computer and use it in GitHub Desktop.
Atom snippets for ruby / rails / rspec
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
'.source.ruby': | |
'context': | |
"prefix": "ctx", | |
"body": "context \"${1}\" do\n\t$2\nend", | |
'describe': | |
"prefix": "dsc", | |
"body": "describe \"${1}\" do\n\t$2\nend" | |
'before-each': | |
'prefix': 'b4e', | |
'body': "before(:each) do\n\t$1\nend" | |
'expect': | |
'prefix': 'exp', | |
'body': "expect( $1 ).to $2" | |
'expect to eq': | |
'prefix': 'exp=', | |
'body': "expect( $1 ).to eq $2" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment