PageRenderTime 6ms CodeModel.GetById 0ms RepoModel.GetById 1ms 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. # --
  6. require "test/unit"
  7. require "${1:library_file_name}"
  8. class Test${2:${1/([\w&&[^_]]+)|./\u$1/g}} < Test::Unit::TestCase
  9. def test_${3:case_name}
  10. $0
  11. end
  12. end