PageRenderTime 8ms CodeModel.GetById 2ms app.highlight 2ms RepoModel.GetById 2ms app.codeStats 0ms

/ruby-mode/Tests/class .. < Test;;Unit;;TestCase .. end (tc).yasnippet

http://github.com/ridgetang/snippets
Unknown | 14 lines | 12 code | 2 blank | 0 comment | 0 complexity | 0d9d989e3723abc237b8a1506d5030f8 MD5 | raw file
 1# -*- mode: snippet -*-
 2# key: tc
 3# contributor: Translated from TextMate Snippet
 4# name: class .. < Test::Unit::TestCase .. end
 5# --
 6require "test/unit"
 7
 8require "${1:library_file_name}"
 9
10class Test${2:${1/([\w&&[^_]]+)|./\u$1/g}} < Test::Unit::TestCase
11	def test_${3:case_name}
12		$0
13	end
14end