Skip to content
Browse files

Added context block get and post.

  • Loading branch information...
1 parent f1aa265 commit 0a60c85d38708c06819aa7d37f81f3c3736803e6 @carlosbrando carlosbrando committed May 30, 2008
Showing with 52 additions and 0 deletions.
  1. +25 −0 Snippets/context block get.tmSnippet
  2. +25 −0 Snippets/context block post.tmSnippet
  3. +2 −0 info.plist
View
25 Snippets/context block get.tmSnippet
@@ -0,0 +1,25 @@
+<?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 GET to :${1:show}" do
+ setup do
+ get :$1, :id =&gt; ${2:1}
+ end
+
+ should "${3:description}" do
+ $0
+ end
+end
+</string>
+ <key>name</key>
+ <string>context block get</string>
+ <key>scope</key>
+ <string>source.ruby.rails.shoulda</string>
+ <key>tabTrigger</key>
+ <string>contg</string>
+ <key>uuid</key>
+ <string>4A3A371D-8037-4370-8C81-658A1E355F8F</string>
+</dict>
+</plist>
View
25 Snippets/context block post.tmSnippet
@@ -0,0 +1,25 @@
+<?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 POST to :${1:create}" do
+ setup do
+ post :$1, :${2:user} =&gt; { ${3::${4:key} =&gt; ${5:value}${6:, :${7:key} =&gt; ${8:value}}} }
+ end
+
+ should "${9:description}" do
+ $0
+ end
+end
+</string>
+ <key>name</key>
+ <string>context block post</string>
+ <key>scope</key>
+ <string>source.ruby.rails.shoulda</string>
+ <key>tabTrigger</key>
+ <string>contp</string>
+ <key>uuid</key>
+ <string>CFF59EC4-3F70-4593-9697-34241653E003</string>
+</dict>
+</plist>
View
2 info.plist
@@ -108,6 +108,8 @@
<key>ordering</key>
<array>
<string>9AD00D7F-EB66-431C-A3BD-13DEE32BA00F</string>
+ <string>4A3A371D-8037-4370-8C81-658A1E355F8F</string>
+ <string>CFF59EC4-3F70-4593-9697-34241653E003</string>
<string>D8AB6BAF-153A-4134-9A46-B1273943F16D</string>
<string>7F642DCE-BDA2-4630-8215-ECE11E31CC5F</string>
<string>AFAC9DA9-19C9-417C-8F6D-C8757450E1A8</string>

0 comments on commit 0a60c85

Please sign in to comment.
Something went wrong with that request. Please try again.