Skip to content

Commit

Permalink
Add block Class::Shoulda::Context in Readme
Browse files Browse the repository at this point in the history
  • Loading branch information
shaliko committed Jan 31, 2010
1 parent 602dbe0 commit 6b3ce44
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 2 deletions.
5 changes: 5 additions & 0 deletions README.rdoc
Expand Up @@ -21,6 +21,11 @@ Or download Shoulda.zip[http://cloud.github.com/downloads/shaliko/shoulda-tmbund

==Snippets

* Class::Shoulda::Context
* context (cont)
* context delete (contd)
* context get (contg)
* context post (contp)
* Shoulda::ActionController::Macros
* should_assign_to (sat)
* should_filter_params (sfp)
Expand Down
24 changes: 24 additions & 0 deletions Snippets/context delete.tmSnippet
@@ -0,0 +1,24 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>content</key>
<string>context "on DELETE to :${1:destroy}" do
setup do
delete :$1, ${2::${3:id} =&gt; ${4:1}}
end
${5:should "${6:description}" do
$0
end}
end</string>
<key>name</key>
<string>context delete</string>
<key>scope</key>
<string>meta.rails.functional_test, meta.rails.unit_test</string>
<key>tabTrigger</key>
<string>contd</string>
<key>uuid</key>
<string>1E078504-58A1-4486-B6DF-C07F3C0F0B96</string>
</dict>
</plist>
7 changes: 5 additions & 2 deletions info.plist
Expand Up @@ -6,10 +6,10 @@
<dict>
<key>items</key>
<array>
<string>AD36313D-D809-4E07-BCE5-AB17925CD4AA</string>
<string>65469E83-A35F-4D2E-83E4-A5305190972E</string>
<string>8A63A075-52F8-41C8-81C9-AA8ADBED1AD6</string>
<string>0EE41B91-2F74-4E9E-BAFB-60C6FA87CFB5</string>
<string>AD36313D-D809-4E07-BCE5-AB17925CD4AA</string>
</array>
<key>submenus</key>
<dict>
Expand Down Expand Up @@ -84,10 +84,12 @@
<key>items</key>
<array>
<string>0A6F49C0-FDB8-42AA-8106-5D4A11679DCC</string>
<string>1E078504-58A1-4486-B6DF-C07F3C0F0B96</string>
<string>C3C3DDCD-5807-497B-BC03-E590ED587719</string>
<string>2B795070-4F21-4930-A752-EA8512060D58</string>
</array>
<key>name</key>
<string>Class: Shoulda::Context</string>
<string>Class::Shoulda::Context</string>
</dict>
</dict>
</dict>
Expand Down Expand Up @@ -140,6 +142,7 @@
<string>0A6F49C0-FDB8-42AA-8106-5D4A11679DCC</string>
<string>2B795070-4F21-4930-A752-EA8512060D58</string>
<string>C3C3DDCD-5807-497B-BC03-E590ED587719</string>
<string>1E078504-58A1-4486-B6DF-C07F3C0F0B96</string>
</array>
<key>uuid</key>
<string>7E52FCE5-B12D-436D-AAFB-5EA830945950</string>
Expand Down

0 comments on commit 6b3ce44

Please sign in to comment.