Last active
April 5, 2017 15:25
-
-
Save stephancom/fc1b468fa807bb32b6ffa6d077f0aea4 to your computer and use it in GitHub Desktop.
Sublime snippet for sketching out CRUD+index in 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
<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