public
Description: Ruby on Rails TextMate bundle [Learn it with PeepCode - http://peepcode.com/products/textmate-for-rails-2]
Homepage: http://groups.google.com/group/rubyonrails-textmate
Clone URL: git://github.com/drnic/ruby-on-rails-tmbundle.git
Click here to lend your support to: ruby-on-rails-tmbundle and make a donation at www.pledgie.com !
ruby-on-rails-tmbundle / Snippets / def post request.tmSnippet
100644 22 lines (20 sloc) 0.644 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?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>def test_should_post_${1:action}
  ${3:@$2 = ${4:$2s}(:${5:fixture_name})
  }post :${1}${6:, :id =&gt; @$2.to_param}, :${2:model} =&gt; { $0 }
  assert_response :redirect
 
end</string>
  <key>name</key>
  <string>def test_should_post_action</string>
  <key>scope</key>
  <string>meta.rails.functional_test</string>
  <key>tabTrigger</key>
  <string>deftp</string>
  <key>uuid</key>
  <string>8B9CD068-4338-4039-AA06-D839A6C7A9FF</string>
</dict>
</plist>