Skip to content

Commit

Permalink
TestCase + helper snippet
Browse files Browse the repository at this point in the history
  • Loading branch information
drnic committed Aug 5, 2008
1 parent 5df26ba commit 4dccf5d
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<?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>require File.dirname(__FILE__) + "/test_helper"
require "${1:`#!/usr/bin/env ruby
require 'rubygems'
require "active_support"
puts ENV['TM_FILENAME'].gsub(/\.rb$/, '').gsub(/^test_/,'').gsub(/_test$/,'')
`}"
class Test${2:${1/([\w&amp;&amp;[^_]]+)|./\u$1/g}} &lt; Test::Unit::TestCase
def test_${3:case_name}
$0
end
end</string>
<key>name</key>
<string>class .. &lt; Test::Unit::TestCase with test_helper</string>
<key>scope</key>
<string>source.ruby</string>
<key>tabTrigger</key>
<string>tch</string>
<key>uuid</key>
<string>228CAB3A-E221-4727-B430-31E94F76C9D3</string>
</dict>
</plist>
1 change: 1 addition & 0 deletions info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -542,6 +542,7 @@
<string>840B9C4C-7037-4C3B-9028-EB9DC75EDB3E</string>
<string>B9E3A6DF-875D-11D9-897C-000393CBCE2E</string>
<string>31D1F145-33AB-4441-BA11-4D1C46928C4C</string>
<string>228CAB3A-E221-4727-B430-31E94F76C9D3</string>
<string>00F66D41-25AF-4597-B67D-E540965A5222</string>
<string>5297FD0C-98B1-4514-BBD1-1516810BECA6</string>
<string>B32C147D-44A6-478A-9D5D-189D7831E9A7</string>
Expand Down

0 comments on commit 4dccf5d

Please sign in to comment.