Method: Tokyo::Unit.test
- Defined in:
- lib/tokyo/unit.rb
.test(label, &block) ⇒ Object Also known as: it, should
define a test
85 86 87 88 89 |
# File 'lib/tokyo/unit.rb', line 85 def test label, &block return unless block tests[label] = Tokyo.identity_string(:test, label, block) define_method(tests[label], &block) end |