Skip to content

Instantly share code, notes, and snippets.

@todd
Last active August 29, 2015 13:56
Show Gist options
  • Save todd/9261822 to your computer and use it in GitHub Desktop.
Save todd/9261822 to your computer and use it in GitHub Desktop.
Helpful Atom Snippets (Work in Progress)
'.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