Method: Minitest::Spec::DSL#create
- Defined in:
- lib/minitest/spec.rb
permalink #create(name, desc) ⇒ Object
:nodoc:
270 271 272 273 274 275 276 277 278 279 280 281 |
# File 'lib/minitest/spec.rb', line 270 def create name, desc # :nodoc: cls = Class.new(self) do @name = name @desc = desc nuke_test_methods! end children << cls cls end |