Skip to content

Instantly share code, notes, and snippets.

@kianw
Created August 15, 2014 17:22
Show Gist options
  • Save kianw/352f371b224a54655f39 to your computer and use it in GitHub Desktop.
Save kianw/352f371b224a54655f39 to your computer and use it in GitHub Desktop.
Atom snippets for ruby / rails / rspec
'.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