Skip to content

Instantly share code, notes, and snippets.

@stephancom
Last active April 5, 2017 15:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stephancom/fc1b468fa807bb32b6ffa6d077f0aea4 to your computer and use it in GitHub Desktop.
Save stephancom/fc1b468fa807bb32b6ffa6d077f0aea4 to your computer and use it in GitHub Desktop.
Sublime snippet for sketching out CRUD+index in rspec
<snippet>
<content><![CDATA[
describe '${1:model_name} collection' do
${2:pending 'needs tests'}
end
describe 'CRUD ${1:model_name}' do
describe 'create' do
${3:pending 'needs tests'}
end
describe 'read' do
${4:pending 'needs tests'}
end
describe 'update' do
${5:pending 'needs tests'}
end
describe 'delete' do
${5:pending 'needs tests'}
end
end
]]></content>
<tabTrigger>rcrud</tabTrigger>
<scope>source.ruby.rspec</scope>
<description>CRUD rspec pending</description>
</snippet>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment