Last active
August 29, 2015 13:56
-
-
Save todd/9261822 to your computer and use it in GitHub Desktop.
Helpful Atom Snippets (Work in Progress)
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': | |
'RSpec describe': | |
'prefix': 'describe' | |
'body': 'describe "${1:class_or_method}" do\n $0\nend' | |
'RSpec context': | |
'prefix': 'context' | |
'body': 'context "$1" do\n $0\nend' | |
'RSpec expect': | |
'prefix': 'expect' | |
'body': 'expect($1).to $0' | |
'RSpec expect block': | |
'prefix': 'expectb' | |
'body': 'expect { $1 }.to $0' | |
'RSpec it': | |
'prefix': 'it' | |
'body': 'it "$1" do\n $0\nend' | |
'RSpec let': | |
'prefix': 'let' | |
'body': 'let($1) { create $1 }' | |
'RSpec let!': | |
'prefix': 'let!' | |
'body': 'let!($1) { create $1 }' | |
'RSpec before': | |
'prefix': 'before' | |
'body': 'before do\n $1\nend' | |
'class': | |
'prefix': 'class' | |
'body': 'class ${1:ClassName}\n $0\nend' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment