Class: TestCase

Inherits:
MiniTest::Unit::TestCase
  • Object
show all
Defined in:
lib/slop-2.3.1/test/helper.rb

Direct Known Subclasses

CommandsTest, OptionTest, SlopTest

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