Class: TestCase
- Inherits:
-
MiniTest::Unit::TestCase
- Object
- MiniTest::Unit::TestCase
- TestCase
- Defined in:
- lib/slop-2.3.1/test/helper.rb
Direct Known Subclasses
Class Method Summary collapse
Class Method Details
.test(name, &block) ⇒ Object
10 11 12 |
# File 'lib/slop-2.3.1/test/helper.rb', line 10 def self.test(name, &block) define_method("test_#{name.gsub(/\W/, '_')}", &block) if block end |